Explorar el Código

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

Lucas Stadler %!s(int64=9) %!d(string=hace) años
padre
commit
76b8e66ebc
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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`