legacy-dots

sxhkdrc

1.8 kB
 1#To spawn the terminal
 2alt + Return
 3	alacritty
 4
 5#Make sxhkd reload its configuration files:
 6alt + shift + Escape
 7	pkill -USR1 -x sxhkd
 8
 9#Show rofi
10alt + space
11	rofi -show drun -monitor 1
12
13#Close and kill
14alt + shift + q
15	bspc node -{c}
16
17#Quit bspwm
18super + shift + {F12, r}
19	bspc {quit, wm -r}
20
21#Focus the given desktop primary monitor
22alt + {1-5}
23	bspc {desktop -f} focused:^{1-4}
24
25# focus or send to the given desktop
26alt + {_,shift + }{1-5}
27	bspc {desktop -f,node -d} focused:^{1-5} --follow
28
29#fullscreen
30alt + f
31	bspc node -t {floating,tiled}
32#float
33alt + shift + f
34	bspc node -t {fullscreen,tiled}
35
36#pseudotile
37alt + shift + p
38	bspc node -t {pseudo_tiled}
39
40# Focus/swap windows by direction
41alt + {_,shift + }{h,j,k,l}
42	bspc node --{focus,swap} {west,south,north,east}
43
44# Move focused window to other monitor
45alt + shift + bracketleft
46	bspc node -m prev --follow
47
48# Move focused window to next monitor
49alt + shift + bracketright
50	bspc node -m next -follow
51
52# Changed focused monitor
53alt + bracketright
54	bspc monitor --focus next
55
56# Changed focused monitor 
57alt + bracketleft
58	bspc monitor --focus prev
59
60# Rotate tree on focused tree
61alt + shift + {d,a}
62	bspc node @/ -C {forward,backward}
63
64# expand a window by moving one of its side outward
65alt + {Left, Down, Up, Right}
66	bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
67
68# contract a window by moving one of its side inward
69alt + shift + {Left, Down, Up, Right}
70	bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
71
72# follow sticky pip 
73alt + p
74	bspc node -g sticky
75
76# preselect the direction
77alt + ctrl + {h,j,k,l}
78	bspc node -p {west,south,north,east}
79
80# cancel the preselection for the focused node
81alt + ctrl + space
82	bspc node -p cancel
83
84#Rotate inside leaf
85alt + BackSpace
86	bspc node @parent -R 90
87
88# Lock screen
89super + shift + l
90	light-locker-command -l