diff --git a/i3blocks/config b/i3blocks/config index 1de1aa2..9b1f4e9 100644 --- a/i3blocks/config +++ b/i3blocks/config @@ -40,7 +40,7 @@ interval=1 color=#50FA7B [ethernet] -command=ip -o -4 addr show enp6s0 | awk '{print " LAN: "$4}' || echo " LAN: down" #  for Ethernet +command=ip -o -4 addr show enp6s0 | awk '{print " "$4}' || echo " down" #  for Ethernet interval=10 [wifi] diff --git a/i3blocks/volume.sh b/i3blocks/volume.sh index 532c8cd..eae11bb 100755 --- a/i3blocks/volume.sh +++ b/i3blocks/volume.sh @@ -1,3 +1,4 @@ + #!/bin/bash # Get the current volume level and mute status diff --git a/i3blocks/wifi_monitor.sh b/i3blocks/wifi_monitor.sh index d3d60e1..412e415 100755 --- a/i3blocks/wifi_monitor.sh +++ b/i3blocks/wifi_monitor.sh @@ -5,7 +5,7 @@ wifi_interface=$(iw dev | awk '$1=="Interface"{print $2}') # If no WiFi interface is found, exit if [ -z "$wifi_interface" ]; then - echo " WiFi: down" + echo " down" exit 1 fi @@ -18,7 +18,7 @@ signal=$(echo "$wifi_info" | awk '/Signal level/ {print $4}' | tr -d 'level=') # Output the result if [ -z "$ssid" ]; then - echo " down" + echo " down" else echo " $ssid ($signal dBm)" fi \ No newline at end of file