monitor mirroring
This commit is contained in:
parent
6215afa533
commit
ef35ed546e
20 changed files with 977 additions and 536 deletions
15
hosts/thalassa/aoife/home/eww/scripts/volume.sh
Executable file
15
hosts/thalassa/aoife/home/eww/scripts/volume.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
per="???"
|
||||
|
||||
if pamixer --get-mute | rg -q true; then
|
||||
icon="婢"
|
||||
elif [ "$per" -gt 66 ]; then
|
||||
icon="墳" # high
|
||||
elif [ "$per" -gt 33 ]; then
|
||||
icon="奔" # med
|
||||
else
|
||||
icon="奄" #low
|
||||
fi
|
||||
|
||||
printf "{\"icon\": \"${icon}\", \"percent\": \"${per}\"}"
|
Loading…
Add table
Add a link
Reference in a new issue