aboutsummaryrefslogtreecommitdiff
path: root/.config/eww
diff options
context:
space:
mode:
Diffstat (limited to '.config/eww')
-rwxr-xr-x.config/eww/scripts/volumecontrol3
1 files changed, 3 insertions, 0 deletions
diff --git a/.config/eww/scripts/volumecontrol b/.config/eww/scripts/volumecontrol
index 2168429..8134d00 100755
--- a/.config/eww/scripts/volumecontrol
+++ b/.config/eww/scripts/volumecontrol
@@ -57,6 +57,7 @@ case $1 in
# Up the volume (+ 2%)
# pactl set-sink-volume @DEFAULT_SINK@ +2%
mixer vol.volume=+2%
+ mixer vol > ~/.cache/audio-volume
send_notification
# canberra-gtk-play -i audio-volume-change
;;
@@ -65,6 +66,7 @@ case $1 in
mixer vol.mute=off
# pactl set-sink-volume @DEFAULT_SINK@ -2%
mixer vol.volume=-2%
+ mixer vol > ~/.cache/audio-volume
send_notification
# canberra-gtk-play -i audio-volume-change
;;
@@ -72,6 +74,7 @@ case $1 in
# Toggle mute
# pactl set-sink-mute @DEFAULT_SINK@ toggle
mixer vol.mute=toggle
+ mixer vol > ~/.cache/audio-volume
if is_mute ; then
icon="󰝟"
fyi --hint=string:x-canonical-private-synchronous:volumecontrol -u normal "$icon Audio Muted"