changes idk
This commit is contained in:
parent
917c6d9c4a
commit
45e2fb7202
12 changed files with 70 additions and 37 deletions
|
|
@ -7,7 +7,7 @@ if (( $volume == 0 )); then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
if (( $volume < 20 )); then
|
||||
if (( $volume < 50 )); then
|
||||
echo 'images/sound-lo.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
|||
30
modules/wm/hyprland/config/eww/scripts/wifi.sh
Executable file
30
modules/wm/hyprland/config/eww/scripts/wifi.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/bin/sh
|
||||
|
||||
strength=$(($(iwconfig wlo1 | grep 'Link Quality' | sed -r 's/.*?Link Quality=(.*?)\/.*$/\1/')))
|
||||
lines=$(($(iwconfig wlo1 | grep 'Link Quality' | sed -r 's/.*?Link Quality=(.*?)\/.*$/\1/' | wc -l)))
|
||||
|
||||
if (( $lines == 0 )); then
|
||||
echo 'images/wifi-off.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if (( $strength < 18 )); then
|
||||
echo 'images/wifi-1.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if (( $strength < 35 )); then
|
||||
echo 'images/wifi-2.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if (( $strength < 53 )); then
|
||||
echo 'images/wifi-3.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if (( $strength < 70 )); then
|
||||
echo 'images/wifi-4.svg'
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue