init
This commit is contained in:
7
bin/st-vol
Executable file
7
bin/st-vol
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
VOLUME=$(wpctl get-volume @DEFAULT_SINK@)
|
||||
if [[ $VOLUME =~ "MUTED" ]]; then
|
||||
echo " MUTED"
|
||||
fi
|
||||
VOLUME=$(echo $VOLUME | sed s/"Volume: 0."//g)
|
||||
echo "$VOLUME%"
|
||||
Reference in New Issue
Block a user