add my own script and config
This commit is contained in:
parent
469e684143
commit
e365e295f3
4 changed files with 32 additions and 13 deletions
11
wp.sh
Executable file
11
wp.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
vol=$(echo "$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | awk -F' ' '{print $2}') * 100" | bc)
|
||||
status=$(wpctl get-volume @DEFAULT_AUDIO_SINK@ | grep -q "[MUTED]")
|
||||
|
||||
if wpctl get-volume @DEFAULT_AUDIO_SINK@| grep -q "[MUTED]"; then
|
||||
echo "mut": $vol%
|
||||
exit
|
||||
fi
|
||||
|
||||
echo vol: $vol%
|
||||
Loading…
Reference in a new issue