Commit | Line | Data |
---|---|---|
3aeeb20d | 1 | # |
7791c200 | 2 | # wm independent hotkeys |
3aeeb20d AB |
3 | # |
4 | ||
7791c200 AB |
5 | # terminal emulator |
6 | super + Return | |
7 | urxvt | |
23a1f61a AB |
8 | super + shift + Return |
9 | urxvt -name tiled | |
3aeeb20d | 10 | |
7791c200 AB |
11 | # program launcher |
12 | super + space | |
13 | rofi -show run -font "Inconsolata 13" | |
3aeeb20d | 14 | |
23a1f61a AB |
15 | # rofi-pass |
16 | super + shift + space | |
17 | rofi-pass | |
18 | ||
19 | # teiler | |
20 | super + shift + s | |
21 | teiler | |
22 | ||
7791c200 AB |
23 | super + z ; t |
24 | urxvt | |
3aeeb20d | 25 | |
7791c200 AB |
26 | super + z ; f |
27 | firefox-nightly | |
3aeeb20d | 28 | |
7791c200 AB |
29 | # firefox |
30 | #super + r | |
31 | # firefox | |
3aeeb20d | 32 | |
7791c200 AB |
33 | # chromium |
34 | #super + c | |
35 | # chromium | |
3aeeb20d | 36 | |
7791c200 AB |
37 | # emacs |
38 | super + e | |
39 | emacs | |
23a1f61a | 40 | # emacs -Q -l src/elisp/oremacs/init.el |
3aeeb20d | 41 | |
7791c200 AB |
42 | # stalonetray |
43 | #super + minus | |
44 | # toggle_tray& | |
3aeeb20d | 45 | |
7791c200 AB |
46 | # volume up |
47 | XF86AudioRaiseVolume | |
48 | pamixer --allow-boost --increase 5 | |
3aeeb20d | 49 | |
7791c200 AB |
50 | # volume down |
51 | XF86AudioLowerVolume | |
52 | pamixer --allow-boost --decrease 5 | |
3aeeb20d | 53 | |
7791c200 AB |
54 | # mute |
55 | XF86AudioMute | |
56 | pamixer --toggle-mute | |
896820db | 57 | |
7791c200 AB |
58 | # monitor brightness |
59 | #XF86MonBrightness{Up,Down} | |
60 | # xbacklight -time 0 {+5,-5} | |
3aeeb20d | 61 | |
7791c200 AB |
62 | # keyboard brightness |
63 | #XF86KbdBrightness{Up,Down} | |
64 | # kbdlight {up,down} | |
3aeeb20d | 65 | |
7791c200 | 66 | XF86LaunchA |
23a1f61a | 67 | /home/amin/.local/bin/toggle-layout |
3aeeb20d | 68 | |
7791c200 AB |
69 | # make sxhkd reload its configuration files: |
70 | super + Escape | |
71 | pkill -USR1 -x sxhkd | |
3aeeb20d | 72 | |
7791c200 AB |
73 | # |
74 | # bspwm hotkeys | |
75 | # | |
3aeeb20d | 76 | |
7791c200 AB |
77 | # quit bspwm normally |
78 | super + alt + Escape | |
79 | bspc quit | |
3aeeb20d | 80 | |
7791c200 AB |
81 | # close and kill |
82 | super + {w,q} | |
83 | bspc node -{c,k} | |
3aeeb20d | 84 | |
7791c200 AB |
85 | # alternate between the tiled and monocle layout |
86 | super + m | |
87 | bspc desktop -l next | |
3aeeb20d | 88 | |
7791c200 AB |
89 | # if the current node is automatic, send it to the last manual, otherwise pull the last leaf |
90 | super + y | |
91 | bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused | |
3aeeb20d | 92 | |
7791c200 AB |
93 | # swap the current node and the biggest node |
94 | super + g | |
95 | bspc node -s biggest | |
3aeeb20d AB |
96 | |
97 | # | |
7791c200 | 98 | # state/flags |
3aeeb20d AB |
99 | # |
100 | ||
7791c200 AB |
101 | # set the window state |
102 | super + {t,shift + t,s,f} | |
103 | bspc node -t {tiled,pseudo_tiled,floating,fullscreen} | |
3aeeb20d | 104 | |
7791c200 AB |
105 | # set the node flags |
106 | super + ctrl + {x,y,z} | |
107 | bspc node -g {locked,sticky,private} | |
d6e35f6a | 108 | |
7791c200 AB |
109 | # |
110 | # focus/swap | |
111 | # | |
5ece0347 | 112 | |
7791c200 AB |
113 | # focus the node in the given direction |
114 | super + {_,shift + }{h,j,k,l} | |
115 | bspc node -{f,s} {west,south,north,east} | |
7a226deb | 116 | |
7791c200 AB |
117 | # focus the node for the given path jump |
118 | super + {p,b,comma,period} | |
119 | bspc node -f @{parent,brother,first,second} | |
3aeeb20d | 120 | |
7791c200 AB |
121 | # focus the next/previous node |
122 | super + {_,shift + }slash | |
123 | bspc node -f {next,prev} | |
3aeeb20d | 124 | |
7791c200 AB |
125 | # focus the next/previous desktop |
126 | super + bracket{left,right} | |
127 | bspc desktop -f {prev,next} | |
3aeeb20d | 128 | |
7791c200 AB |
129 | # send to next/prev desktop |
130 | super + shift + bracket{left,right} | |
131 | bspc node -d {prev,next} | |
3aeeb20d | 132 | |
7791c200 AB |
133 | # focus the last node/desktop |
134 | super + {grave,Tab} | |
135 | bspc {node,desktop} -f last | |
3aeeb20d | 136 | |
7791c200 AB |
137 | # focus the older or newer node in the focus history |
138 | super + {o,i} | |
139 | bspc wm -h off; \ | |
140 | bspc node {older,newer} -f; \ | |
141 | bspc wm -h on | |
78856df8 | 142 | |
7791c200 AB |
143 | # focus or send to the given desktop |
144 | super + {_,shift + }{1-9,0} | |
145 | bspc {desktop -f,node -d} '^{1-9,10}' | |
78856df8 | 146 | |
7791c200 AB |
147 | # |
148 | # preselect | |
149 | # | |
78856df8 | 150 | |
7791c200 AB |
151 | # preselect the direction |
152 | super + ctrl + {h,j,k,l} | |
153 | bspc node -p {west,south,north,east} | |
a341f8e4 | 154 | |
7791c200 AB |
155 | # preselect the ratio |
156 | super + ctrl + {1-9} | |
157 | bspc node -o 0.{1-9} | |
a341f8e4 | 158 | |
7791c200 AB |
159 | # cancel the preselection for the focused node |
160 | super + ctrl + space | |
161 | bspc node -p cancel | |
a341f8e4 | 162 | |
7791c200 AB |
163 | # cancel the preselection for the focused desktop |
164 | super + ctrl + shift + space | |
165 | bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel | |
8c17e1b6 | 166 | |
7791c200 AB |
167 | # |
168 | # move/resize | |
169 | # | |
8c17e1b6 | 170 | |
7791c200 AB |
171 | # expand a window by moving one of its side outward |
172 | super + alt + {h,j,k,l} | |
173 | bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0} | |
ed5099ff | 174 | |
7791c200 AB |
175 | # contract a window by moving one of its side inward |
176 | super + alt + shift + {h,j,k,l} | |
177 | bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0} | |
a8a12804 | 178 | |
7791c200 AB |
179 | # move a floating window |
180 | super + {Left,Down,Up,Right} | |
181 | bspc node -v {-20 0,0 20,0 -20,20 0} |