summaryrefslogtreecommitdiff
path: root/guix/kolwynia/home/bdunahu/files/.config/eww/scripts/getvol
diff options
context:
space:
mode:
Diffstat (limited to 'guix/kolwynia/home/bdunahu/files/.config/eww/scripts/getvol')
-rwxr-xr-xguix/kolwynia/home/bdunahu/files/.config/eww/scripts/getvol9
1 files changed, 0 insertions, 9 deletions
diff --git a/guix/kolwynia/home/bdunahu/files/.config/eww/scripts/getvol b/guix/kolwynia/home/bdunahu/files/.config/eww/scripts/getvol
deleted file mode 100755
index 9fbe60f..0000000
--- a/guix/kolwynia/home/bdunahu/files/.config/eww/scripts/getvol
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-RUNNING_SINK=$(pactl list sinks | awk '
- /^Sink #/ {sink=$2}
- /State: RUNNING/ {print sink}
-' | head -n1)
-
-pactl list sinks | grep -A 20 "^Sink $RUNNING_SINK" | grep '^[[:space:]]Volume:' | \
- head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,'