Add .fluxbox/keys.
[dotfiles-framework.git] / src / .fluxbox / keys
1 # begin /usr/share/fluxbox/keys from Gentoo's x11-wm/fluxbox-1.3.1 package
2
3 # click on the desktop to get menus
4 OnDesktop Mouse1 :HideMenus
5 OnDesktop Mouse2 :WorkspaceMenu
6 OnDesktop Mouse3 :RootMenu
7
8 # scroll on the desktop to change workspaces
9 OnDesktop Mouse4 :PrevWorkspace
10 OnDesktop Mouse5 :NextWorkspace
11
12 # scroll on the toolbar to change current window
13 OnToolbar Mouse4 :PrevWindow {static groups} (iconhidden=no)
14 OnToolbar Mouse5 :NextWindow {static groups} (iconhidden=no)
15
16 # alt + left/right click to move/resize a window
17 OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}
18 OnWindowBorder Move1 :StartMoving
19
20 OnWindow Mod1 Mouse3 :MacroCmd {Raise} {Focus} {StartResizing NearestCorner}
21 OnLeftGrip Move1 :StartResizing bottomleft
22 OnRightGrip Move1 :StartResizing bottomright
23
24 # alt + middle click to lower the window
25 OnWindow Mod1 Mouse2 :Lower
26
27 # control-click a window's titlebar and drag to attach windows
28 OnTitlebar Control Mouse1 :StartTabbing
29
30 # double click on the titlebar to shade
31 OnTitlebar Double Mouse1 :Shade
32
33 # left click on the titlebar to move the window
34 OnTitlebar Mouse1 :MacroCmd {Raise} {Focus} {ActivateTab}
35 OnTitlebar Move1  :StartMoving
36
37 # middle click on the titlebar to lower
38 OnTitlebar Mouse2 :Lower
39
40 # right click on the titlebar for a menu of options
41 OnTitlebar Mouse3 :WindowMenu
42
43 # alt-tab
44 Mod1 Tab :NextWindow {groups} (workspace=[current])
45 Mod1 Shift Tab :PrevWindow {groups} (workspace=[current])
46
47 # cycle through tabs in the current window
48 Mod4 Tab :NextTab
49 Mod4 Shift Tab :PrevTab
50
51 # go to a specific tab in the current window
52 Mod4 1 :Tab 1
53 Mod4 2 :Tab 2
54 Mod4 3 :Tab 3
55 Mod4 4 :Tab 4
56 Mod4 5 :Tab 5
57 Mod4 6 :Tab 6
58 Mod4 7 :Tab 7
59 Mod4 8 :Tab 8
60 Mod4 9 :Tab 9
61
62 # open a terminal
63 Mod1 F1 :Exec xterm
64
65 # open a dialog to run programs
66 Mod1 F2 :Exec fbrun
67
68 # volume settings, using common keycodes
69 # if these don't work, use xev to find out your real keycodes
70 176 :Exec amixer sset Master,0 1+
71 174 :Exec amixer sset Master,0 1-
72 160 :Exec amixer sset Master,0 toggle
73
74 # current window commands
75 Mod1 F4 :Close
76 Mod1 F5 :Kill
77 Mod1 F9 :Minimize
78 Mod1 F10 :Maximize
79 Mod1 F11 :Fullscreen
80
81 # open the window menu
82 Mod1 space :WindowMenu
83
84 # exit fluxbox
85 Control Mod1 Delete :Exit
86
87 # change to previous/next workspace
88 Control Mod1 Left :PrevWorkspace
89 Control Mod1 Right :NextWorkspace
90
91 # send the current window to previous/next workspace
92 Mod4 Left :SendToPrevWorkspace
93 Mod4 Right :SendToNextWorkspace
94
95 # send the current window and follow it to previous/next workspace
96 Control Mod4 Left :TakeToPrevWorkspace
97 Control Mod4 Right :TakeToNextWorkspace
98
99 # change to a specific workspace
100 Control F1 :Workspace 1
101 Control F2 :Workspace 2
102 Control F3 :Workspace 3
103 Control F4 :Workspace 4
104 Control F5 :Workspace 5
105 Control F6 :Workspace 6
106 Control F7 :Workspace 7
107 Control F8 :Workspace 8
108 Control F9 :Workspace 9
109 Control F10 :Workspace 10
110 Control F11 :Workspace 11
111 Control F12 :Workspace 12
112
113 # send the current window to a specific workspace
114 Mod4 F1 :SendToWorkspace 1
115 Mod4 F2 :SendToWorkspace 2
116 Mod4 F3 :SendToWorkspace 3
117 Mod4 F4 :SendToWorkspace 4
118 Mod4 F5 :SendToWorkspace 5
119 Mod4 F6 :SendToWorkspace 6
120 Mod4 F7 :SendToWorkspace 7
121 Mod4 F8 :SendToWorkspace 8
122 Mod4 F9 :SendToWorkspace 9
123 Mod4 F10 :SendToWorkspace 10
124 Mod4 F11 :SendToWorkspace 11
125 Mod4 F12 :SendToWorkspace 12
126
127 # send the current window and change to a specific workspace
128 Control Mod4 F1 :TakeToWorkspace 1
129 Control Mod4 F2 :TakeToWorkspace 2
130 Control Mod4 F3 :TakeToWorkspace 3
131 Control Mod4 F4 :TakeToWorkspace 4
132 Control Mod4 F5 :TakeToWorkspace 5
133 Control Mod4 F6 :TakeToWorkspace 6
134 Control Mod4 F7 :TakeToWorkspace 7
135 Control Mod4 F8 :TakeToWorkspace 8
136 Control Mod4 F9 :TakeToWorkspace 9
137 Control Mod4 F10 :TakeToWorkspace 10
138 Control Mod4 F11 :TakeToWorkspace 11
139 Control Mod4 F12 :TakeToWorkspace 12
140
141 # end /usr/share/fluxbox/keys
142
143 # my local additions
144 #
145 # Fluxbox  Standard keyboard
146 # Mod1     Alt
147 # Mod4     Windows key
148 # Control  Ctrl
149 # Shift    Shift
150
151 Mod1 t :ExecCommand xterm -fg white -bg black -fa mono-medium
152 Mod1 f :ExecCommand firefox
153 Mod1 l :ExecCommand xlock -mode blank
154
155 Mod1 i :Move 0 -10
156 Mod1 k :Move 0 10
157 Mod1 j :Move -10 0
158 Mod1 l :Move 10 0
159 Mod4 i :Resize 0 -10
160 Mod4 k :Resize 0 10
161 Mod4 j :Resize -10 0
162 Mod4 l :Resize 10 0
163  
164 Mod1 m :Maximize
165 Mod4 m :Close
166 Mod1 c :ToggleCmd {Exec conky} {pkill conky}
167
168 Control Mod1 r :Reconfigure