summaryrefslogtreecommitdiff
path: root/dot-config/bspwm/sxhkdrc
blob: 727a96fef0278ed62455301ff09b0371ce2d5d1a (plain)
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
## Keybindings config for ArchLinux's BSPWM

##---------- Keybindings for bspwm ----------##

# Terminal (alacritty)
super + Return
	bspterm

# Terminal (floating)
super + shift + Return
	bspterm --float

# Terminal (fullscreen)
super + alt + Return
	bspterm --full

super + t
    bspterm --full

super + space + Return
    bspterm --pseudo

super + alt + Delete
    ~/.config/rofi/scripts/rofi_powermenu

##---------- Rofi Launcher & Menus ----------##

# Rofi App Launcher
alt + F1
	rofi_launcher

# Rofi Run
alt + F2
	rofi_runner

# Rofi Menus/Applets
#super + {c,m,n,r,s,t,v,w,x}
#	{rofi_configs,rofi_music,nmd,rofi_asroot,rofi_screenshot,rofi_themes,rofi_clip,rofi_windows,rofi_powermenu}

# Rofi Menus/Applets
super + {c,m,n,r,s,v,w,x,b}
	{rofi_configs,rofi_music,nmd,rofi_asroot,rofi_screenshot,rofi_clip,rofi_windows,rofi_powermenu,rofi_bluetooth}

super + alt + b
    killall runtransani.sh; exec $HOME/scripts/runtransani.sh &

super + period
    rofi_emoji



##---------- Applications ----------##

# Launch Apps
super + shift + {f,w,e,d,b}
	{thunar,thorium-browser --restore-last-session,code,discord,beeper} #&& mv /home/system/.config/Thunar/uca.xml . && mv uca.xml /home/system/.config/Thunar/uca.xml

# Terminal Apps
ctrl + alt + {a,v,r,b}
	alacritty --class 'alacritty-float,alacritty-float' -e {pulsemixer,lvim,ranger,sudo nice -n -20 btop}

# task manager
ctrl + shift + Escape
    sudo btop

ctrl + alt + Delete
    rofi_shutdown_menu

# Color Picker
super + p
	bspcolorpicker

# Music
ctrl + alt + m
	bspmusic

# Lockscreen
ctrl + alt + l
    betterlockscreen --lock & betterlockscreen -u ~/Pictures/wallpapers    

# quick google chat launch
# super + shift + c
    # gtk-launch google-chat.desktop

# quick gmail launch
super + shift + g
    gtk-launch shortwave.desktop

##---------- System Keys ----------##

# Take a screenshot
Print
	bspscreenshot --now
	
# Take screenshot in 5 second
alt + Print
	bspscreenshot --in5

# Take screenshot in 10 second
shift + Print
	bspscreenshot --in10

# Take screenshot of active window
ctrl + Print
	bspscreenshot --win

# Take screenshot of area
#super + Print
super + shift + s
	bspscreenshot --area

# Brighness control
# XF86MonBrightness{Up,Down}
# 	bspbrightness{ --inc, --dec}
	
# Speaker Volume control
XF86Audio{RaiseVolume,LowerVolume}
	bspvolume{ --inc, --dec}

# Mic Volume control
XF86Audio{Mute,MicMute}
	bspvolume{ --toggle, --toggle-mic}
	
# Music control
XF86Audio{Next,Prev,Play,Stop}
    {playerctl -p spotify next, playerctl -p spotifyprevious,bsppp,playerctl -p spotify stop}

super + XF86PowerOff
    $HOME/.config/rofi/scripts/rofi_shutdown

XF86PowerOff
    $HOME/.config/rofi/scripts/rofi_shutdown

alt + f
    $HOME/scripts/autoclicker-left.sh
    # /usr/bin/ps ax | grep -v grep | grep autoclicker-left > /dev/null && killall autoclicker-left || exec autoclicker-left

alt + g
    $HOME/scripts/autoclicker-right.sh
    #/usr/bin/ps ax | grep -v grep | grep autoclicker-right > /dev/null && killall autoclicker-right || exec autoclicker-right

##---------- Bspwm ----------##

# Hide/Unhide Window
super + shift + h
	bspwinmask

super + d
	bspwinmask


# Close App
super + {_,shift + }q
	bspc node -{c,k}

#alt + F4
#    bspc node -{c,k}


# kill window
ctrl + alt + Escape
    /home/system/scripts/mouseKill

ctrl + super + alt + Escape
    xkill -id $(xprop -root _NET_ACTIVE_WINDOW | awk '{print $5}')

# Quit/Restart bspwm
ctrl + super + shift + r
	bspc wm -r

ctrl + shift + q
    [[ "$(echo -e "\n" | rofi -dmenu -p 'Confirmation' -mesg 'Quit BSPWM?' -theme $HOME/.config/bspwm/themes/default/rofi/confirm.rasi)" == "yes" ]] && bspc quit

# restart picom
# ctrl + shift + p
#     killall picom; bspcomp

# Reload Keybindings
super + Escape
	pkill -USR1 -x sxhkd && killall xbindkeys && xbindkeys

# reload Polybar
ctrl + super + Escape
    bspbar && bspc config top_padding 46
    #polybar-msg cmd restart && bspc config top_padding 46

# Switch workspace
ctrl + alt + {Left,Right}
	bspc desktop -f {prev.local,next.local}

# Switch workspace or Send focused Node to another workspace
super + {_,shift + }{1-9}
	bspc {desktop -f,node -d} '^{1-9}' '--follow'

super + {_,shift + }0
    bspc {desktop -f, node -d} '^10'

# Send focused Node to workspace directionally
super + ctrl + shift + {Left,Right}
	bspc node -d {prev,next} '--follow'

# Change focus of the Node or Swap Nodes
super + {_,shift + }{Left,Down,Up,Right}
	bspc node -{f,s} {west,south,north,east}

# Move floating windows
#super + alt + shift + {Left,Down,Up,Right}
shift + alt + {Left,Down,Up,Right}
	bspc node -v {-20 0,0 20,0 -20,20 0}

# Expanding windows
super + control + {Left,Right,Up,Down}
	bspc node -z {left -20 0,right 20 0,top 0 -20,bottom 0 20}

# Shrinking windows
super + alt + {Left,Right,Up,Down}
	bspc node -z {left 20 0,right -20 0,top 0 20,bottom 0 -20}

# scroll
super + {button4,button5}
    bspc node -z {left -20 0 & bspc node -z right 20 0 & bspc node -z top 0 -20 & bspc node -z bottom 0 20,left 20 0 & bspc node -z right -20 0 & bspc node -z top 0 20 & bspc node -z buttom 0 -20}

# "Drag to floating" tiled windows or move floating windows.
# ctrl + button3
	# ~/.config/bspwm/scripts/drag-to-float
# ctrl + @button3
	# ~/.config/bspwm/scripts/drag-to-float stop
# @button3
	# ~/.config/bspwm/scripts/drag-to-float stop
# ~button3
	# :

# Split horizontal, vertical or cancel
super + alt + {h,v,q}
	bspc node -p {east,south,cancel}

# toggle between horizontal and vertical
ctrl + super + m
    bspc node @parent -R 90

# Preselect the ratio
super + ctrl + {1-9}
	bspc node -o 0.{1-9}

# Toggle Layout (Tiled/Monocle)
super + l
	bspc desktop -l next

# Toggle Fullscreen
super + f
    bspc node -t "~"fullscreen

# Toggle beetwen floating & tiled
super + space
    bspc node -t "~"{floating,tiled}

# Pseudo Tiled & tiled mode
super + shift + space
    bspc node -t "~"{pseudo_tiled,tiled}

# Set the node flags
super + ctrl + {m,x,y,z}
	bspc node -g {marked,locked,sticky,private}

# Change focus to next window, including floating window
alt + {_,shift + }Tab
	bspc node -f {next.local,prev.local}

# Switch to last opened workspace
super + {Tab,grave}
	bspc {node,desktop} -f last

##---------- EOF ----------##