diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc index 2e48d81..25d89de 100644 --- a/.config/sxhkd/sxhkdrc +++ b/.config/sxhkd/sxhkdrc @@ -50,39 +50,54 @@ super + alt + shift + {h,j,k,l} super + {Left,Down,Up,Right} bspc node -v {-20 0,0 20,0 -20,20 0} +# Mute XF86AudioMute 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) +# Volume + XF86AudioRaiseVolume 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) +# Volume - XF86AudioLowerVolume 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) +# Mute mic XF86AudioMicMute 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) +# Brightness - XF86MonBrightnessDown echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) - 5) > /sys/class/backlight/amdgpu_bl0/brightness +# Brightness + XF86MonBrightnessUp echo (math (cat /sys/class/backlight/amdgpu_bl0/brightness) + 5) > /sys/class/backlight/amdgpu_bl0/brightness +# Screenshot fullscreen 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}" +# Screenshot with selecton 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}" +# Play XF86AudioPlay dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause +# Previous XF86AudioPrev dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous +# Next XF86AudioNext dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next + +# Alternate between windows, even across multiple desktops +super + Tab + bspc node last -f last.\!hidden -f last.\!same_class