updates for volume controls in awesome
This commit is contained in:
parent
06e78fce2b
commit
6ad3e2f63a
4 changed files with 16 additions and 13 deletions
|
@ -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"))
|
||||
|
|
|
@ -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
|
7
scripts/volmute
Executable file
7
scripts/volmute
Executable file
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue