diff options
Diffstat (limited to 'components/volume')
| -rw-r--r-- | components/volume | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/volume b/components/volume new file mode 100644 index 0000000..3249774 --- /dev/null +++ b/components/volume @@ -0,0 +1,4 @@ +#!/bin/sh + +vol="$(pactl list sinks | grep '^[[:space:]]Volume:' | head -n $(( $SINK + 1 )) | tail -n 1 | sed -e 's,.* \([0-9][0-9]*\)%.*,\1,')" +[ "$vol" = "0" ] && echo "ﱝ muted" || echo "墳 ${vol}%" |
