summaryrefslogtreecommitdiffstats
path: root/.fluxbox/keys
blob: f4a0d3ae12d4a02c84af5dc21a10293ed16955aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
#
# Window Management
#

# Alt(+Shift)+Tab
Mod1 Tab       :NextWindow {groups} (workspace=[current])
Mod1 Shift Tab :PrevWindow {groups} (workspace=[current])

# Alt+F(N)
Mod1 F2       :Exec fbrun
Mod1 F4       :Close
Mod1 Shift F4 :Kill
Mod1 F5       :Shade
Mod1 F6       :Stick
Mod1 F7       :StartMoving
Mod1 F8       :StartResizing BottomRight
Mod1 F9       :Minimize
Mod1 F10      :Maximize
Mod1 F11      :Fullscreen
Mod1 F12      :Exec ps -C skippy-xd 1>/dev/null 2>&1 || skippy-xd

# Title bar right click and Alt+Space to open window menu
OnTitlebar Mouse3 :WindowMenu
Mod1 space :WindowMenu

# (Un)shade window when scrolling on titlebar
OnTitlebar Mouse4 :ShadeOn
OnTitlebar Mouse5 :ShadeOff

# Title bar drag, border drag, and Alt+drag
OnTitlebar Move1     :StartMoving
OnWindowBorder Move1 :StartMoving
OnWindow Mod1 Move1  :StartMoving
#OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}

# Resize on corner dragging and Alt+right-click on window
OnLeftGrip Move1     :StartResizing BottomLeft
OnRightGrip Move1    :StartResizing BottomRight
OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}

# Maximize on title bar double click
OnTitlebar Double Mouse1 :Maximize

# Tiling
Mod4 Left  :MacroCmd {ResizeTo 50% 100%} {MoveTo 0 0 TopLeft}
Mod4 Right :MacroCmd {ResizeTo 50% 100%} {MoveTo 0 0 TopRight}
Mod4 Up    :MacroCmd {ResizeTo 100% 50%} {MoveTo 0 0 TopLeft}
Mod4 Down  :MacroCmd {ResizeTo 100% 50%} {MoveTo 0 0 BottomLeft}

#OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}

#
# Tab Management
#

# Super(+Shift)+Tab
Mod4 Tab       :NextTab
Mod4 Shift Tab :PrevTab

# Switch to specific tab
Mod4 1 :Tab 1
Mod4 2 :Tab 2
Mod4 3 :Tab 3
Mod4 4 :Tab 4
Mod4 5 :Tab 5
Mod4 6 :Tab 6
Mod4 7 :Tab 7
Mod4 8 :Tab 8
Mod4 9 :Tab 9

# Ctrl+drag tabs
OnTitlebar Control Mouse1 :StartTabbing

#
# Workspace Management
#

# Switch to next/previous workspace
Control Mod1 Left  :Exec chdt l
Control Mod1 Right :Exec chdt r
Control Mod1 Up    :Exec chdt u
Control Mod1 Down  :Exec chdt d

# Switch to specific workspace
Control F1  :Workspace 1
Control F2  :Workspace 2
Control F3  :Workspace 3
Control F4  :Workspace 4
Control F5  :Workspace 5
Control F6  :Workspace 6
Control F7  :Workspace 7
Control F8  :Workspace 8
Control F9  :Workspace 9
Control F10 :Workspace 10
Control F11 :Workspace 11
Control F12 :Workspace 12

# Move window to next/previous workspace
Control Mod1 Shift Left  :Exec chdt -w l
Control Mod1 Shift Right :Exec chdt -w r
Control Mod1 Shift Up    :Exec chdt -w u
Control Mod1 Shift Down  :Exec chdt -w d

# Move window to next/previous workspace
Control Shift F1  :TakeToWorkspace 1
Control Shift F2  :TakeToWorkspace 2
Control Shift F3  :TakeToWorkspace 3
Control Shift F4  :TakeToWorkspace 4
Control Shift F5  :TakeToWorkspace 5
Control Shift F6  :TakeToWorkspace 6
Control Shift F7  :TakeToWorkspace 7
Control Shift F8  :TakeToWorkspace 8
Control Shift F9  :TakeToWorkspace 9
Control Shift F10 :TakeToWorkspace 10
Control Shift F11 :TakeToWorkspace 11
Control Shift F12 :TakeToWorkspace 12

# Add/remove workspace
Control Shift Insert :AddWorkspace
Control Shift Delete :RemoveLastWorkspace

#
# Session and Applications
#

# Session/screen management
Mod4 F1               :Delay {Exec xset dpms force off} 100000
Pause                 :Delay {Exec xset dpms force off} 100000
Control Mod1 Delete l :Exec xscreensaver-command -lock
Control Mod1 Delete q :Exec printf 'quit\n' >~/.xsessionmanage
Control Mod1 Delete s :Exec sudo shutdown -hP now
Control Mod1 Delete r :Exec sudo reboot
Control Mod1 Delete c :Reconfigure

# Audio
XF86AudioRaiseVolume :Exec amixer set Master,0 5%+
XF86AudioLowerVolume :Exec amixer set Master,0 5%-
XF86AudioMute        :Exec amixer set Master,0 toggle

# Music
XF86AudioPlay       :Exec mpc toggle
XF86AudioStop       :Exec mpc stop
Shift XF86AudioPlay :Exec mpc repeat
Shift XF86AudioStop :Exec mpc single
XF86AudioNext       :Exec mpc next
XF86AudioPrev       :Exec mpc prev
Shift XF86AudioNext :Exec mpc seek +00:00:05
Shift XF86AudioPrev :Exec mpc seek -00:00:05

# PrtSc
Print       :Exec scrot ~/shots/%Y-%m-%d_%H:%M:%S.png
Shift Print :Exec scrot -u -b ~/shots/%Y-%m-%d_%H:%M:%S.png
Mod1 Print  :Exec scrot -s ~/shots/%Y-%m-%d_%H:%M:%S.png

# Launch applications
#Mod4 :CustomMenu ~/.fluxbox/menus/applications
Mod4 t :Exec x-terminal-emulator
Mod4 m :Exec claws-mail
Mod4 w :Exec x-www-browser
Mod4 c :Exec gnome-calculator
Mod4 o :Exec libreoffice

#
# Menus
#

OnDesktop Mouse1 :HideMenus
OnDesktop Mouse2 :WorkspaceMenu
OnDesktop Mouse3 :RootMenu