]> git.sev.monster Git - dotfiles.git/blame - bin/tint2-wifi
update firefox theming
[dotfiles.git] / bin / tint2-wifi
CommitLineData
f29cd560 1#!/bin/sh
a568f7fa 2base=~/.icons/Paper-Mono-Dark/24x24/panel/network-wireless
3excellent=$base-signal-excellent.svg
4 good=$base-signal-good.svg
5 ok=$base-signal-ok.svg
6 low=$base-signal-low.svg
7 none=$base-signal-none.svg
8 no_route=$base-no-route.svg
9 offline=$base-offline.svg
10
11echo $base-acquiring.svg
f29cd560 12while true; do
a568f7fa 13 x=$(cat /proc/net/wireless | awk 'NR < 3 {next} {printf "%.0f", $4}')
14 if [ -z $x ]; then
f29cd560 15 echo $offline
a568f7fa 16 elif [ $x -ge -55 ]; then
f29cd560 17 echo $excellent
a568f7fa 18 elif [ $x -ge -65 ]; then
f29cd560 19 echo $good
a568f7fa 20 elif [ $x -ge -75 ]; then
f29cd560 21 echo $ok
a568f7fa 22 elif [ $x -ge -85 ]; then
f29cd560 23 echo $low
a568f7fa 24 elif [ $x -ge -90 ]; then
f29cd560 25 echo $none
a568f7fa 26 else
27 echo $no_route
f29cd560 28 fi
a568f7fa 29 sleep 2
f29cd560 30done
This page took 0.029417 seconds and 4 git commands to generate.