Parcourir la Source

~/.config/dwm/status.sh: Add optional network indicator

Lucas Stadler 9 ans auparavant
Parent
commit
76b8e66ebc
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      .config/dwm/status.sh

+ 4 - 0
.config/dwm/status.sh

@ -2,6 +2,10 @@
2 2
3 3
status=""
4 4
5
# network
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)"
8
5 9
# battery
6 10
charge_path="/sys/class/power_supply"
7 11
charge_full=`cat $charge_path/BAT0/energy_full`