dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 2cc57b101f43533e3a4fead8e38f34980591bdac
parent 162cc32c12f1b686929cfea8e1032c6e561bb32b
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri, 30 Nov 2018 09:33:15 -0500

Merge pull request #152 from fatalhalt/master

i3internet: strip leading whitespace from /proc/net/wireless output
Diffstat:
M.scripts/statusbar/i3internet | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.scripts/statusbar/i3internet b/.scripts/statusbar/i3internet @@ -13,6 +13,6 @@ esac [ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡" -[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep ^w /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }') +[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }') printf "%s %s" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"