2021-11-12 23:04:44 +01:00
|
|
|
#Terminal
|
|
|
|
super + Return
|
2021-11-15 14:31:41 +01:00
|
|
|
kitty
|
2021-11-12 23:04:44 +01:00
|
|
|
#Program launcher
|
|
|
|
super + r
|
2021-11-14 00:13:17 +01:00
|
|
|
dmenu_run
|
2021-11-12 23:04:44 +01:00
|
|
|
#Firefox
|
|
|
|
super + d
|
2021-11-14 00:13:17 +01:00
|
|
|
firefox
|
2021-11-12 23:04:44 +01:00
|
|
|
# Lock Screen
|
|
|
|
super + l
|
|
|
|
betterlockscreen -l
|
|
|
|
#Nautilus
|
|
|
|
super + p
|
2021-11-16 16:17:54 +01:00
|
|
|
nautilus
|
2021-11-12 23:04:44 +01:00
|
|
|
#Quit/restart bspwm
|
|
|
|
super + alt + {q,r}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc {quit,wm -r}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Close and kill
|
|
|
|
super + {_,shift + }v
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -{c,k}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Set the window state
|
|
|
|
super + {t,s,f}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -t {tiled,floating,fullscreen}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Focus the node in the given direction
|
|
|
|
super + {_,shift + }{h,j,k,l}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -{f,s} {west,south,north,east}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Focus or send to the given desktop
|
|
|
|
super + {_,shift + }{1-9,0}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc {desktop -f,node -d} '^{1-9,10}'
|
2021-11-12 23:04:44 +01:00
|
|
|
#Preselect the direction
|
|
|
|
super + ctrl + {h,j,k,l}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -p {west,south,north,east}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Preselect the ratio
|
|
|
|
super + ctrl + {1-9}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -o 0.{1-9}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Cancel the preselection for the focused desktop
|
|
|
|
super + Escape
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc query -N -d | xargs -I id -n 1 bspc node id -p cancel
|
2021-11-12 23:04:44 +01:00
|
|
|
#Expand a window by moving one of its side outward
|
|
|
|
super + alt + {h,j,k,l}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -z {left -20 0,bottom 0 20,top 0 -20,right 20 0}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Contract a window by moving one of its side inward
|
|
|
|
super + alt + shift + {h,j,k,l}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}
|
2021-11-12 23:04:44 +01:00
|
|
|
#Move a floating window
|
|
|
|
super + {Left,Down,Up,Right}
|
2021-11-14 00:13:17 +01:00
|
|
|
bspc node -v {-20 0,0 20,0 -20,20 0}
|
2021-11-16 16:17:54 +01:00
|
|
|
|
|
|
|
XF86AudioMute
|
|
|
|
pactl set-sink-mute @DEFAULT_SINK@ toggle
|
|
|
|
|
|
|
|
XF86AudioRaiseVolume
|
|
|
|
if [ (pacmd list-sinks| grep -A 15 '* index'| awk '/volume: front/\{ print $5 \}' | sed 's/[%|,]//g') -le "98" ] ; pactl set-sink-volume @DEFAULT_SINK@ +2%; end;
|
|
|
|
|
|
|
|
XF86AudioLowerVolume
|
|
|
|
pactl set-sink-volume @DEFAULT_SINK@ -2%
|
|
|
|
|
|
|
|
XF86AudioMicMute
|
|
|
|
pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
|
|
|
|
|
|
|
XF86MonBrightnessDown
|
|
|
|
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
|
|
|
|
|
|
|
XF86MonBrightnessUp
|
|
|
|
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) + 5) > /sys/class/backlight/amdgpu_bl0/brightness
|