1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

bin structure and vifm preview

This commit is contained in:
TiynGER
2020-03-31 20:32:16 +02:00
parent 148aaee349
commit 3ca4ecaaa1
27 changed files with 316 additions and 59 deletions

View File

@@ -0,0 +1,7 @@
#!/usr/bin/env sh
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="📡"
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "📶", int($3 * 100 / 70) "%" }')
printf "%s %s\n" "$wifiicon" "$(cat /sys/class/net/e*/operstate | sed "s/down/❎/;s/up/🌐/")"