Просмотр исходного кода

~/.config/dwm: Display a special icon when disconnected

Lucas Stadler лет назад: 8
Родитель
Сommit
6d74b18d38
1 измененных файлов с 6 добавлено и 1 удалено
  1. 6 1
      .config/dwm/status.sh

+ 6 - 1
.config/dwm/status.sh

4
4
5
# network
5
# network
6
#status="📡 $(nmcli --terse --fields STATE -c no g status)"
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
# battery
14
# battery
10
charge_path="/sys/class/power_supply"
15
charge_path="/sys/class/power_supply"