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