changes idk

This commit is contained in:
KoenDR06 2025-04-25 14:02:28 +02:00
parent 917c6d9c4a
commit 45e2fb7202
12 changed files with 70 additions and 37 deletions

View 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