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-16 22:06:43 +01:00
|
|
|
#Focus the given desktop
|
|
|
|
super + {ampersand,eacute,quotedbl,apostrophe,parenleft,minus,egrave,underscore,ccedilla,agrave}
|
2022-06-07 16:37:32 +02:00
|
|
|
bspc desktop -f '{1,2,3,4,5,6,7,8,9,0}'
|
2021-11-16 22:06:43 +01:00
|
|
|
#Send and follow to the given desktop
|
|
|
|
super + shift + {1,2,3,4,5,6,7,8,9,0}
|
2022-06-07 16:37:32 +02:00
|
|
|
bspc node -d '{1,2,3,4,5,6,7,8,9,0}' --follow
|
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
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Mute
|
2021-11-16 16:17:54 +01:00
|
|
|
XF86AudioMute
|
2022-01-16 18:14:42 +01:00
|
|
|
pactl set-sink-mute @DEFAULT_SINK@ toggle && \
|
|
|
|
dunstify -h string:x-dunst-stack-tag:sink-mute "Sink muted" (pactl get-sink-mute @DEFAULT_SINK@ | cut -d ' ' -f 2)
|
2021-11-16 16:17:54 +01:00
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Volume +
|
2021-11-16 16:17:54 +01:00
|
|
|
XF86AudioRaiseVolume
|
2022-01-16 18:14:42 +01:00
|
|
|
pactl set-sink-volume @DEFAULT_SINK@ +2% && \
|
|
|
|
dunstify -h string:x-dunst-stack-tag:sink-volume "Sink volume" (pactl get-sink-volume @DEFAULT_SINK@ | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' | head -n 1)
|
2021-11-16 16:17:54 +01:00
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Volume -
|
2021-11-16 16:17:54 +01:00
|
|
|
XF86AudioLowerVolume
|
2022-01-16 18:14:42 +01:00
|
|
|
pactl set-sink-volume @DEFAULT_SINK@ -2% && \
|
|
|
|
dunstify -h string:x-dunst-stack-tag:sink-volume "Sink volume" (pactl get-sink-volume @DEFAULT_SINK@ | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' | head -n 1)
|
2021-11-16 16:17:54 +01:00
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Mute mic
|
2021-11-16 16:17:54 +01:00
|
|
|
XF86AudioMicMute
|
2022-01-16 18:14:42 +01:00
|
|
|
pactl set-source-mute @DEFAULT_SOURCE@ toggle && \
|
|
|
|
dunstify -h string:x-dunst-stack-tag:source-mute "Source muted" (pactl get-source-mute @DEFAULT_SOURCE@ | cut -d ' ' -f 2)
|
2021-11-16 16:17:54 +01:00
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Brightness -
|
2021-11-16 16:17:54 +01:00
|
|
|
XF86MonBrightnessDown
|
|
|
|
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Brightness +
|
2021-11-16 16:17:54 +01:00
|
|
|
XF86MonBrightnessUp
|
|
|
|
echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) + 5) > /sys/class/backlight/amdgpu_bl0/brightness
|
2021-11-17 23:06:48 +01:00
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Screenshot fullscreen
|
2021-11-17 23:06:48 +01:00
|
|
|
Print
|
|
|
|
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import -window root ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Screenshot with selecton
|
2021-11-17 23:06:48 +01:00
|
|
|
ctrl + Print
|
|
|
|
set FILE_NAME "/home/louis/Pictures/Screenshots/Screeshot-"(date +'%d-%m-%Y-%H-%M-%S')".png" && import ${FILE_NAME} && dunstify "Screenshot taken: ${FILE_NAME}"
|
2021-11-22 14:08:55 +01:00
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Play
|
2021-11-22 14:08:55 +01:00
|
|
|
XF86AudioPlay
|
|
|
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause
|
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Previous
|
2021-11-22 14:08:55 +01:00
|
|
|
XF86AudioPrev
|
|
|
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous
|
|
|
|
|
2022-06-07 15:27:58 +02:00
|
|
|
# Next
|
2021-11-22 14:08:55 +01:00
|
|
|
XF86AudioNext
|
|
|
|
dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next
|
2022-06-07 15:27:58 +02:00
|
|
|
|
|
|
|
# Alternate between windows, even across multiple desktops
|
|
|
|
super + Tab
|
|
|
|
bspc node last -f last.\!hidden -f last.\!same_class
|
2022-06-07 16:37:32 +02:00
|
|
|
|
|
|
|
# Rotate tree
|
|
|
|
super + shift + {s,d}
|
|
|
|
bspc node @/ -C {forward,backward}
|