-
Notifications
You must be signed in to change notification settings - Fork 5
/
sample.key.conf
116 lines (116 loc) · 3.39 KB
/
sample.key.conf
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
# Possible Mods are Alt, Control, CtrlAlt, ShftAlt, Super,
# ShftSuper, CtrlSuper, AltSuper, NULL(for no Mod key)
#
# Set external commands ; use with spawn
CMD dmenucmd;dmenu_run;-i;-nb;#666622;-nf;white;NULL;
CMD xtermcmd;xterm;NULL;
# Right click on the bar to run a command
# "barrtclickcmd" is hardcoded so case matters e.g.
# CMD barrtclickcmd;dmenu;NULL;
# To quit the window manager and shutdown or reboot
# "shutdowncmd" and "rebootcmd" are hardcoded so case matters
# use with terminate(see bottom of this file)
CMD shutdowncmd;sudo;shutdown;-P;now;NULL;
CMD rebootcmd;sudo;reboot;NULL;
#
KEY Alt;1;change_desktop;0;
KEY Alt;2;change_desktop;1;
KEY Alt;3;change_desktop;2;
KEY Alt;4;change_desktop;3;
KEY Alt;5;change_desktop;4;
KEY Alt;6;change_desktop;5;
KEY Alt;7;change_desktop;6;
KEY Alt;8;change_desktop;7;
KEY Alt;9;change_desktop;8;
KEY Alt;0;change_desktop;9;
#
KEY Super;Right;rotate_desktop;1;
KEY Super;Left;rotate_desktop;-1;
#
# Send an app to another desktop and follow it
KEY ShftAlt;1;follow_client_to_desktop;0;
KEY ShftAlt;2;follow_client_to_desktop;1;
KEY ShftAlt;3;follow_client_to_desktop;2;
KEY ShftAlt;4;follow_client_to_desktop;3;
KEY ShftAlt;5;follow_client_to_desktop;4;
KEY ShftAlt;6;follow_client_to_desktop;5;
KEY ShftAlt;7;follow_client_to_desktop;6;
KEY ShftAlt;8;follow_client_to_desktop;7;
KEY ShftAlt;9;follow_client_to_desktop;8;
KEY ShftAlt;0;follow_client_to_desktop;9;
#
# Send an app to another desktop but dont't follow it
KEY ShftSuper;1;client_to_desktop;0;
KEY ShftSuper;2;client_to_desktop;1;
KEY ShftSuper;3;client_to_desktop;2;
KEY ShftSuper;4;client_to_desktop;3;
KEY ShftSuper;5;client_to_desktop;4;
KEY ShftSuper;6;client_to_desktop;5;
KEY ShftSuper;7;client_to_desktop;6;
KEY ShftSuper;8;client_to_desktop;7;
KEY ShftSuper;9;client_to_desktop;8;
KEY ShftSuper;0;client_to_desktop;9;
#
KEY CtrlSuper;1;sticky_win;1;
KEY CtrlSuper;2;sticky_win;2;
KEY CtrlSuper;3;sticky_win;3;
KEY CtrlSuper;4;sticky_win;4;
KEY CtrlSuper;5;sticky_win;5;
KEY CtrlSuper;6;sticky_win;6;
KEY CtrlSuper;7;sticky_win;7;
KEY CtrlSuper;8;sticky_win;8;
KEY CtrlSuper;9;sticky_win;9;
KEY CtrlSuper;0;sticky_win;10;
#
KEY CtrlSuper;q;unsticky_win;
#
KEY Alt;a;rotate_mode;1;
KEY Alt;c;kill_client;
KEY Alt;j;next_win;
KEY Alt;k;prev_win;
KEY Alt;h;resize_master;10;
KEY Alt;l;resize_master;-10;
KEY Alt;p;resize_stack;10;
KEY Alt;o;resize_stack;-10;
KEY Alt;r;pop_window;
KEY Alt;u;update_config;
KEY Alt;Tab;last_desktop;
#
# Shortcut for dmenu_run
KEY Alt;v;spawn;dmenucmd;
#
# Add/remove a window to/from the master area in vertical/horizontal mode
KEY ShftAlt;m;more_master;1;
KEY ShftAlt;l;more_master;-1;
#
# move windows
KEY ShftAlt;k;move_down;10;
KEY ShftAlt;j;move_up;-10;
KEY ShftAlt;o;move_left;-10;
KEY ShftAlt;p;move_right;10;
KEY ShftAlt;Return;swap_master;
# Switch tiling mode to vertical
KEY ShftAlt;v;switch_mode;0;
# Switch tiling mode to fullscreen
KEY ShftAlt;f;switch_mode;1;
# Switch tiling mode to horizontal
KEY ShftAlt;h;switch_mode;2;
# Switch tiling mode to grid
KEY ShftAlt;g;switch_mode;3;
# Switch tiling mode to center stacking
KEY ShftAlt;c;switch_mode;4;
#
# Show/hide the bar
KEY Super;b;toggle_bar;
# Shortcut for xterm
KEY Super;t;spawn;xtermcmd;
# Focus the last focused window
KEY Super;Tab;last_win;
#
# Shortcut to exit the window manager
KEY CtrlAlt;q;quit;
# Close any open windows and reboot or shutdown
# 1 to shutdown, 2 to reboot
KEY CtrlAlt;s;terminate;1;
KEY CtrlAlt;r;terminate;2;
#