Ver Código Fonte

~/.config/dwm: Support adding more statuses at the front

Lu Stadler 7 anos atrás
pai
commit
d0e81fb88a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      .config/dwm/status.sh

+ 2 - 2
.config/dwm/status.sh

@ -5,10 +5,10 @@ status=""
5 5
# network
6 6
#status="📡 $(nmcli --terse --fields STATE -c no g status)"
7 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 8
if [ "$network" = "" ]; then
10
	status="⛔"
9
	status="$status⛔"
11 10
else
11
	status="$status📡 $network"
12 12
	if ping -w1 -c1 1.1.1.1 &> /dev/null; then
13 13
		status="$status*"
14 14
	fi