eww power menu
This commit is contained in:
parent
5660ca8d1a
commit
c439ae2cd0
30 changed files with 208 additions and 229 deletions
15
modules/wm/hyprland/config/eww/scripts/volume.sh
Executable file
15
modules/wm/hyprland/config/eww/scripts/volume.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
volume=$(($(wpctl get-volume @DEFAULT_SINK@ | sed -r 's/Volume: (0|1)\.(..)/\1\2/; s/^(0)//g')))
|
||||
|
||||
if (( $volume == 0 )); then
|
||||
echo 'images/sound-off.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if (( $volume < 20 )); then
|
||||
echo 'images/sound-lo.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo 'images/sound-hi.svg'
|
||||
Loading…
Add table
Add a link
Reference in a new issue