forked from BurntSushi/pytyle3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
keybind.py
40 lines (32 loc) · 1.39 KB
/
keybind.py
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
# This is a python script. Pay attention to the syntax and indentation
import state
import tile
bindings = {
# You can use Control and Shift. Alt is Mod1, Super is Mod4.
#Available commands :
# tile: start tiling
# untile: stop tiling and move the windows back to their original position
# cycle: switch between horizontal and vertical tiling
# increase_master: increase the space allocated to master windows
# decrease_master: increase the space allocated to slave windows
# add_master: send a window from the slave group to the master group
# remove_master: send a window from the master group to the slave group
# prev_client: Focus the previous window
# next_client: Focus the next window
# focus_master: Focus the master window
# switch_prev_client: switch active window with previous
# switch_next_client: switch active window with next
# rotate: shift all windows' positions (clockwise)
# make_master: send active window to the master position
'Control-Mod1-v': tile.cmd('tile'),
'Control-Mod1-BackSpace': tile.cmd('untile'),
'Control-Mod1-s': tile.cmd('decrease_master'),
'Control-Mod1-r': tile.cmd('increase_master'),
'Control-Mod1-g': tile.cmd('remove_master'),
'Control-Mod1-d': tile.cmd('add_master'),
'Control-Mod1-c': tile.cmd('rotate'),
'Control-Mod1-h': tile.cmd('cycle'),
'Control-Mod1-f': tile.cmd('toggle_float'),
# quit pytyle
'Control-Mod1-q': state.quit,
}