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