summaryrefslogtreecommitdiff
path: root/volume
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-01-18 11:44:26 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-01-18 11:44:26 +0100
commit83954961af8b6337da100e038561f2fd975ac1fe (patch)
tree33a45dbf91cc4c0b8975287b9537db8aa272505f /volume
parentafd02bfcce54e3252d356f34c25a155c855f3612 (diff)
downloadchadscripts-master.tar.gz
chadscripts-master.tar.bz2
chadscripts-master.zip
huge changesHEADmaster
Diffstat (limited to 'volume')
-rwxr-xr-xvolume8
1 files changed, 4 insertions, 4 deletions
diff --git a/volume b/volume
index 3da8d8f..7047805 100755
--- a/volume
+++ b/volume
@@ -2,8 +2,8 @@
# TODO: see if pulseaudio is running
case "$1" in
- up) pactl set-sink-volume @DEFAULT_SINK@ "+5%" ;;
- down) pactl set-sink-volume @DEFAULT_SINK@ "-5%" ;;
- mute) pactl set-sink-mute @DEFAULT_SINK@ toggle ;;
- *) pactl set-sink-volume @DEFAULT_SINK@ "$1" ;;
+ up) pactl set-sink-volume @DEFAULT_SINK@ "+5%" && notify-send "Volume increased by 5%" ;;
+ down) pactl set-sink-volume @DEFAULT_SINK@ "-5%" && notify-send "Volume decreased by 5%" ;;
+ mute) pactl set-sink-mute @DEFAULT_SINK@ toggle && notify-send "Volume muted/unmuted" ;;
+ *) pactl set-sink-volume @DEFAULT_SINK@ "$1" && notify-send "Volume increased by $1%" ;;
esac