|
|
@ -4,7 +4,12 @@ status=""
|
|
4
|
4
|
|
|
5
|
5
|
# network
|
|
6
|
6
|
#status="📡 $(nmcli --terse --fields STATE -c no g status)"
|
|
7
|
|
#status="📡 $(nmcli --terse --colors no --fields name,type connection show --active | grep -v ':bridge$' | sed 's/:[-a-z0-9]*$//' | head -n1)"
|
|
|
7
|
network="$(nmcli --terse --colors no --fields name,type connection show --active | grep -v ':bridge$' | sed 's/:[-a-z0-9]*$//' | head -n1)"
|
|
|
8
|
status="📡 $network"
|
|
|
9
|
if [ "$network" = "" ]; then
|
|
|
10
|
status="📯"
|
|
|
11
|
fi
|
|
|
12
|
#status="📡 $(nmcli -t -f active,ssid dev wifi | sort -r | uniq)"
|
|
8
|
13
|
|
|
9
|
14
|
# battery
|
|
10
|
15
|
charge_path="/sys/class/power_supply"
|