From 094430c1f74e7c11108a1576042f8d201a30ae0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Ortega=20Froysa?= Date: Tue, 31 Dec 2024 10:58:59 +0100 Subject: [PATCH] audio-control: remove commands to update status files. These were only necessary when I held files for status updates in DWM. --- audio-control | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/audio-control b/audio-control index e96c61c..a9bef34 100755 --- a/audio-control +++ b/audio-control @@ -14,19 +14,15 @@ fi case $1 in "mute") pactl set-sink-mute 0 toggle - pactl list sinks | awk '/Mute/ { if ($2 == "no") print "VOL"; else print "MUT"; }' ;; "vol-up") pactl set-sink-volume 0 +5% - pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' ;; "vol-down") pactl set-sink-volume 0 -5% - pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' ;; "reset") pactl set-sink-volume 0 50% - pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,' ;; "help") echo "USAGE: audio-control @@ -37,7 +33,8 @@ Commands: vol-down lower the volume reset reset volume (to round number) toggle-port toggle the output port - help show this help information";; + help show this help information" + ;; *) echo "Invalid command. Run with 'help' for a list of commands." exit 1;;