laptop, large refactor and some new stuff
This commit is contained in:
parent
525f4ce03b
commit
99bbbbeb1e
15 changed files with 307 additions and 492 deletions
15
nixos/hosts/thalassa/null/home/eww/scripts/volume.sh
Executable file
15
nixos/hosts/thalassa/null/home/eww/scripts/volume.sh
Executable 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}\"}"
|
Loading…
Add table
Add a link
Reference in a new issue