eww stuff
This commit is contained in:
2
home-manager/progs/eww/config/scripts/sound/getSink.sh
Executable file
2
home-manager/progs/eww/config/scripts/sound/getSink.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env sh
|
||||
wpctl inspect @DEFAULT_SINK@ | rg "node.description" | cut -d' ' -f6-
|
||||
8
home-manager/progs/eww/config/scripts/sound/getVolume.sh
Executable file
8
home-manager/progs/eww/config/scripts/sound/getVolume.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
count=$(wpctl get-volume @DEFAULT_SINK@ | sed 's/Volume: //g' | sed 's/0\.[0]//g')
|
||||
color="green"
|
||||
if ((count > 75)); then color="yellow"; fi
|
||||
if ((count > 90)); then color="peach"; fi
|
||||
if ((count > 100)); then color="maroon"; fi
|
||||
if ((count > 110)); then color="red"; fi
|
||||
echo "{\"count\":\"${count}\", \"color\":\"${color}\"}"
|
||||
Reference in New Issue
Block a user