1
0
forked from extern/nix-config

sxhkd: Show notification when changing volume

This commit is contained in:
Donovan Glover 2022-03-20 17:40:44 -04:00
parent b57db95cfd
commit 301deee996
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -95,13 +95,13 @@ super + c
# =======================
XF86AudioMute
pactl set-sink-mute @DEFAULT_SINK@ toggle
pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send -t 2000 "Changed muted to" "$(pamixer --get-mute)"
XF86AudioLowerVolume
pactl set-sink-volume @DEFAULT_SINK@ -5%
pactl set-sink-volume @DEFAULT_SINK@ -5% && notify-send -t 2000 "Lowered volume to" "$(pamixer --get-volume)%"
XF86AudioRaiseVolume
pactl set-sink-volume @DEFAULT_SINK@ +5%
pactl set-sink-volume @DEFAULT_SINK@ +5% && notify-send -t 2000 "Raised volume to" "$(pamixer --get-volume)%"
XF86AudioMicMute
pactl set-source-mute @DEFAULT_SOURCE@ toggle