1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-04-08 11:57:45 +02:00

Compare commits

..

2 Commits

Author SHA1 Message Date
tiyn
fa224c4deb Merge branch 'master' of github:tiyn/dotfiles 2025-02-22 20:39:25 +01:00
tiyn
d05f39b991 statusbar: fixed problem in internet script 2025-02-22 20:39:05 +01:00

View File

@ -2,7 +2,7 @@
wifipercent=" 0"
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="^c#ff0000^ " && wifistatus="down"
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="^c#ff0000^ ^d^ " && wifistatus="down"
[ ! -n "${wifiicon+var}" ] && wifistatus="up" && wifipercent=$(grep "^\s*w" /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')