Initial commit of utility scripts
This commit is contained in:
parent
ac77586a15
commit
1faeefffd7
34 changed files with 1328 additions and 1 deletions
8
bin/bar_wifi.sh
Executable file
8
bin/bar_wifi.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) echo " ";;
|
||||
up) percentage="$(awk '/^\s*w/ { print int($3 * 100 / 70) "% " }' /proc/net/wireless)"
|
||||
ssid=$(iwgetid -r)
|
||||
echo \ $ssid
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue