bspwm and sxhkd config updates
[~bandali/configs] / sxhkd / .config / sxhkd / sxhkdrc
CommitLineData
3aeeb20d 1#
7791c200 2# wm independent hotkeys
3aeeb20d
AB
3#
4
7791c200
AB
5# terminal emulator
6super + Return
7 urxvt
23a1f61a
AB
8super + shift + Return
9 urxvt -name tiled
3aeeb20d 10
7791c200
AB
11# program launcher
12super + space
13 rofi -show run -font "Inconsolata 13"
3aeeb20d 14
23a1f61a
AB
15# rofi-pass
16super + shift + space
17 rofi-pass
18
19# teiler
20super + shift + s
21 teiler
22
7791c200
AB
23super + z ; t
24 urxvt
3aeeb20d 25
7791c200
AB
26super + 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
38super + 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
47XF86AudioRaiseVolume
48 pamixer --allow-boost --increase 5
3aeeb20d 49
7791c200
AB
50# volume down
51XF86AudioLowerVolume
52 pamixer --allow-boost --decrease 5
3aeeb20d 53
7791c200
AB
54# mute
55XF86AudioMute
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 66XF86LaunchA
23a1f61a 67 /home/amin/.local/bin/toggle-layout
3aeeb20d 68
7791c200
AB
69# make sxhkd reload its configuration files:
70super + Escape
71 pkill -USR1 -x sxhkd
3aeeb20d 72
7791c200
AB
73#
74# bspwm hotkeys
75#
3aeeb20d 76
7791c200
AB
77# quit bspwm normally
78super + alt + Escape
79 bspc quit
3aeeb20d 80
7791c200
AB
81# close and kill
82super + {w,q}
83 bspc node -{c,k}
3aeeb20d 84
7791c200
AB
85# alternate between the tiled and monocle layout
86super + 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
90super + 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
94super + 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
102super + {t,shift + t,s,f}
103 bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
3aeeb20d 104
7791c200
AB
105# set the node flags
106super + 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
114super + {_,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
118super + {p,b,comma,period}
119 bspc node -f @{parent,brother,first,second}
3aeeb20d 120
7791c200
AB
121# focus the next/previous node
122super + {_,shift + }slash
123 bspc node -f {next,prev}
3aeeb20d 124
7791c200
AB
125# focus the next/previous desktop
126super + bracket{left,right}
127 bspc desktop -f {prev,next}
3aeeb20d 128
7791c200
AB
129# send to next/prev desktop
130super + shift + bracket{left,right}
131 bspc node -d {prev,next}
3aeeb20d 132
7791c200
AB
133# focus the last node/desktop
134super + {grave,Tab}
135 bspc {node,desktop} -f last
3aeeb20d 136
7791c200
AB
137# focus the older or newer node in the focus history
138super + {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
144super + {_,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
152super + ctrl + {h,j,k,l}
153 bspc node -p {west,south,north,east}
a341f8e4 154
7791c200
AB
155# preselect the ratio
156super + ctrl + {1-9}
157 bspc node -o 0.{1-9}
a341f8e4 158
7791c200
AB
159# cancel the preselection for the focused node
160super + ctrl + space
161 bspc node -p cancel
a341f8e4 162
7791c200
AB
163# cancel the preselection for the focused desktop
164super + 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
172super + 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
176super + 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
180super + {Left,Down,Up,Right}
181 bspc node -v {-20 0,0 20,0 -20,20 0}