voidrice/.scripts/i3wifi
2018-11-04 18:56:54 -05:00

9 lines
213 B
Bash
Executable file

#!/bin/sh
case $BLOCK_BUTTON in
1) $TERMINAL -e nmtui ;;
esac
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && echo 📡 && exit
grep ^w /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }'