laptop, large refactor and some new stuff

This commit is contained in:
Vivian 2022-08-27 23:58:28 +02:00
parent c7a2895e5a
commit 07941251b5
15 changed files with 307 additions and 492 deletions

View file

@ -0,0 +1,15 @@
#!/bin/sh
per="$(pamixer --get-volume)"
if pamixer --get-mute | grep -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}\"}"