-
Notifications
You must be signed in to change notification settings - Fork 3
/
sxhkd
171 lines (125 loc) · 3.47 KB
/
sxhkd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#
# wm independent hotkeys
#
# power operations
super + End ; {s,S,alt + s,r,p}
loginctl {suspend,hibernate,hybrid-sleep,reboot,poweroff}
super + End ; b
xset dpms force off
# rofi
super + shift + {End,Insert,Return,space}
exec rofi{-powermenu,-bspwm-unhide, -modi emoji -show emoji, -modi calc -show calc}
super + space
exec rofi -show drun
alt + Tab
rofi-windowswitcher
# applications
super + Return
exec kitty -1
super + Pause
exec xpause
super + shift + {m,v,p,alt + p,e}
exec {mpv "$(clip-paste)",pavucontrol,gnome-system-monitor,missioncenter,pcmanfm}
super + shift + n
exec kitty -1 --class=kittyfloat -o initial_window_width=900 -o initial_window_height=900 \
rmpc
{_,ctrl} + Print
screenshot {-s -u,-u}
super + F12
wlp-rotate
{shift,shift + alt,ctrl,ctrl + alt,alt} + Home
dunstctl {close,close-all,history-pop,context,action 0}
# Media
XF86Tools
rmpc togglepause
XF86Audio{LowerVolume,RaiseVolume,Mute}
rmpc {prev,next,stop}
#
# bspwm hotkeys
#
# close and kill
super + {_,shift + }w
bspc node -{c,k}
# alternate between the tiled and monocle layout
super + m
bspc desktop -l next
# if current node is automatic, send it to the last manual, otherwise pull the last leaf
super + y
bspc query -N -n focused.automatic && bspc node -n last.!automatic || bspc node last.leaf -n focused
# swap the current node and the biggest local window
super + g
bspc node -s biggest.local.window
# toggle pointer focus
super + alt + p
bspc config focus_follows_pointer {true,false}
#
# state/flags
#
# set the window state
super + {t,shift + t,s,f}
bspc node -t {tiled,pseudo_tiled,floating,fullscreen}
# set the node flags
super + ctrl + {w,x,y,z}
bspc node -g {hidden,locked,sticky,private}
super + ctrl + shift + w
bspc node $(bspc query -N -d focused -n .hidden | tail -1) -g hidden=off
#
# focus/swap
#
super {_,+ shift} + r
bspc node @/ -R {90,270}
# rotate leaves of tree
super + shift + {comma,period}
bspc desktop -R {90,270}
# focus/swap the node in the given direction
super + {_,shift + }{h,j,k,l}
bspc node -{f,s} {west,south,north,east}
# focus the node for the given path jump
super + {p,b,comma,period}
bspc node -f @{parent,brother,first,second}
# focus the next/previous window in the current desktop
super + {_,shift + }c
bspc node -f {next,prev}.local.!local.window
# focus the next/previous desktop
super + bracket{left,right}
bspc desktop -f {prev,next}
# focus the last node/desktop
super + {grave,Tab}
bspc {node,desktop} -f last
# focus the older or newer node in the focus history
super + {o,i}
bspc wm -h off; \
bspc node {older,newer} -f; \
bspc wm -h on
# focus/send to the given desktop
{_,shift + }{super,mode_switch} + {1-9,0}
bspc {desktop -f,node -d} {DisplayPort-1,HDMI-A-0}:'^{1-9,10}'
# focus/send to another monitor
super + minus
bspc monitor -f last
super + underscore
bspc node -m last --follow
#
# preselect
#
# preselect the direction
super + ctrl + {h,j,k,l}
bspc node -p {west,south,north,east}
# preselect the ratio
super + ctrl + {1-9}
bspc node -o 0.{1-9}
# cancel the preselection for the focused node
super + ctrl + space
bspc node -p cancel
#
# move/resize
#
# expand the tiled space in the given direction
super + alt + {h,j,k,l}
bspc node {@west -r -,@south -r +,@north -r -,@east -r +}10
# contract the tiled space in the given direction
super + alt + shift + {h,j,k,l}
bspc node {@east -r -,@north -r +,@south -r -,@west -r +}10
# move a floating window
super + {Left,Down,Up,Right}
bspc node -v {-20 0, 0 20, 0 -20,20 0}