mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-12-23 05:22:53 +00:00
Merge branch 'master' of github.com:thytom/dwmbar
This commit is contained in:
commit
c2b4f5e629
2 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Prints out if there is an internet connection
|
||||
# Requires an internet connection
|
||||
|
||||
INTERNET_ICON=''
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ WIFI_LOW_ICON=''
|
|||
|
||||
get_wifi()
|
||||
{
|
||||
if grep -q wlan* "/proc/net/wireless"; then
|
||||
if grep -q wl* "/proc/net/wireless"; then
|
||||
# Wifi quality percentage
|
||||
percentage=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70)}'| xargs)
|
||||
case $percentage in
|
||||
|
|
Loading…
Reference in a new issue