]> git.sev.monster Git - dotfiles.git/blame - bin/tint2-wifi
actually set PINENTRY_USER_DATA, fix invocation
[dotfiles.git] / bin / tint2-wifi
CommitLineData
1390d028 1#!/bin/sh
dcac60d9 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
1390d028 12while true; do
dcac60d9 13 x=$(cat /proc/net/wireless | awk 'NR < 3 {next} {printf "%.0f", $4}')
14 if [ -z $x ]; then
1390d028 15 echo $offline
dcac60d9 16 elif [ $x -ge -55 ]; then
1390d028 17 echo $excellent
dcac60d9 18 elif [ $x -ge -65 ]; then
1390d028 19 echo $good
dcac60d9 20 elif [ $x -ge -75 ]; then
1390d028 21 echo $ok
dcac60d9 22 elif [ $x -ge -85 ]; then
1390d028 23 echo $low
dcac60d9 24 elif [ $x -ge -90 ]; then
1390d028 25 echo $none
dcac60d9 26 else
27 echo $no_route
1390d028 28 fi
dcac60d9 29 sleep 2
1390d028 30done
This page took 0.0306 seconds and 4 git commands to generate.