diff --git a/awesome/keybindings.fnl b/awesome/keybindings.fnl index 456788e..0084ca5 100644 --- a/awesome/keybindings.fnl +++ b/awesome/keybindings.fnl @@ -211,17 +211,13 @@ {:description "Increase volume by 5%" :group "audio"}) (awful.key [] "XF86AudioLowerVolume" (fn [] (awful.spawn "voldown")) {:description "Decrease volume by 5%" :group "audio"}) - (awful.key [] "XF86AudioMute" (fn [] (awful.spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle") - (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")) + (awful.key [] "XF86AudioMute" (fn [] (awful.spawn "volmute")) {:description "Mute volume" :group "audio"}) - (awful.key [] "F3" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ +5%") - (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")) + (awful.key [] "F3" (fn [] (awful.spawn "volup")) {:description "Increase volume by 5%" :group "audio"}) - (awful.key [] "F2" (fn [] (awful.spawn "pactl set-sink-volume @DEFAULT_SINK@ -5%") - (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")) + (awful.key [] "F2" (fn [] (awful.spawn "voldown")) {:description "Decrease volume by 5%" :group "audio"}) - (awful.key [] "F1" (fn [] (awful.spawn "pactl set-sink-mute @DEFAULT_SINK@ toggle") - (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")) + (awful.key [] "F1" (fn [] (awful.spawn "volmute")) {:description "Mute volume" :group "audio"}) (awful.key [] "XF86Launch8" (fn [] (awful.spawn "pactl set-source-mute @DEFAULT_SOURCE@ toggle") (awful.spawn "paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga")) diff --git a/scripts/voldown b/scripts/voldown index 7e93518..0ea462f 100755 --- a/scripts/voldown +++ b/scripts/voldown @@ -1,7 +1,7 @@ #!/bin/sh awesome-client "naughty.destroy_all_notifications()" -pactl set-sink-volume @DEFAULT_SINK@ -5% -paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga +pamixer -d 5 +pw-play /nix/store/grc8na7vz23zlz0q9g76y6f66qrgr2cv-sound-theme-freedesktop-0.8/share/sounds/freedesktop/stereo/audio-volume-change.oga volume=$(pulsemixer --get-volume | awk '{print $1}') -notify-send $volume \ No newline at end of file +notify-send $volume diff --git a/scripts/volmute b/scripts/volmute new file mode 100755 index 0000000..079a806 --- /dev/null +++ b/scripts/volmute @@ -0,0 +1,7 @@ +#!/bin/sh + +awesome-client "naughty.destroy_all_notifications()" +pamixer -t +pw-play /nix/store/grc8na7vz23zlz0q9g76y6f66qrgr2cv-sound-theme-freedesktop-0.8/share/sounds/freedesktop/stereo/audio-volume-change.oga +volume=$(pulsemixer --get-volume | awk '{print $1}') +notify-send $volume \ No newline at end of file diff --git a/scripts/volup b/scripts/volup index e8f2d11..a7f2709 100755 --- a/scripts/volup +++ b/scripts/volup @@ -1,7 +1,7 @@ #!/bin/sh awesome-client "naughty.destroy_all_notifications()" -pactl set-sink-volume @DEFAULT_SINK@ +5% -paplay /usr/share/sounds/freedesktop/stereo/audio-volume-change.oga +pamixer -i 5 +pw-play /nix/store/grc8na7vz23zlz0q9g76y6f66qrgr2cv-sound-theme-freedesktop-0.8/share/sounds/freedesktop/stereo/audio-volume-change.oga volume=$(pulsemixer --get-volume | awk '{print $1}') notify-send $volume