Add wifi,network,load fields to i3bar.
This commit is contained in:
@@ -1,5 +1,20 @@
|
|||||||
separator_block_width=33
|
separator_block_width=33
|
||||||
|
|
||||||
|
[wifi]
|
||||||
|
command=$HOME/.i3/scripts/wifi
|
||||||
|
label=
|
||||||
|
interval=30
|
||||||
|
|
||||||
|
[network]
|
||||||
|
command=/usr/lib/i3blocks/iface
|
||||||
|
label=
|
||||||
|
interval=120
|
||||||
|
|
||||||
|
[load]
|
||||||
|
command=/usr/lib/i3blocks/load_average
|
||||||
|
label=
|
||||||
|
interval=120
|
||||||
|
|
||||||
[volume]
|
[volume]
|
||||||
command=$HOME/.i3/scripts/pa-volume status
|
command=$HOME/.i3/scripts/pa-volume status
|
||||||
signal=1
|
signal=1
|
||||||
|
|||||||
11
i3/i3/scripts/wifi
Executable file
11
i3/i3/scripts/wifi
Executable file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
aps="$(nmcli --terse --fields IN-USE,SSID,SIGNAL device wifi list | grep '^\*:')"
|
||||||
|
|
||||||
|
ssid="$(echo $aps | cut -d ':' -f 2)"
|
||||||
|
perc="$(echo $aps | cut -d ':' -f 3)"
|
||||||
|
|
||||||
|
output="$ssid $perc%"
|
||||||
|
|
||||||
|
echo $output
|
||||||
|
echo $output
|
||||||
Reference in New Issue
Block a user