Update Vim, NZXT wifi i3block

This commit is contained in:
2019-07-04 03:54:01 -04:00
parent 6bd844931b
commit a0fcd6714e
10 changed files with 50 additions and 26 deletions

View File

@@ -68,6 +68,11 @@ WIDTH=220
# sys.monitoring [[[ #
{{ if eq .chezmoi.fullHostname "nzxt" }}
[wifi]
label=
instance=wlp4s0
interval=10
[temperature]
label=
interval=5

View File

@@ -29,7 +29,7 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}"
#------------------------------------------------------------------------
QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
QUALITY=$(sudo grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }')
# echo $QUALITY
W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':')
W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}')