diff options
author | bd <bdunahu@operationnull.com> | 2025-10-18 16:49:18 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-10-18 16:49:18 -0400 |
commit | 4d6171844a8b6971c76be8054aa56b65685317fd (patch) | |
tree | adbea5f22b8c6f6c3392cac5c049d5424f9ba770 /.config/eww/scripts/getvol | |
parent | b5eaf56936b0620e0fb0f2f0d4bb12936f7f2445 (diff) |
move tab-bar-global info to dedicated eww panel
Diffstat (limited to '.config/eww/scripts/getvol')
-rwxr-xr-x | .config/eww/scripts/getvol | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.config/eww/scripts/getvol b/.config/eww/scripts/getvol new file mode 100755 index 0000000..9fbe60f --- /dev/null +++ b/.config/eww/scripts/getvol @@ -0,0 +1,9 @@ +#!/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,' |