Przeglądaj źródła

Use proper eth prefix in #polybar

Colin Powell 5 lat temu
rodzic
commit
7b26647e1d

+ 2 - 2
polybar/.config/polybar/config

@@ -226,7 +226,7 @@ interval = 5.0
 
 format-connected = <ramp-signal> <label-connected>
 format-connected-underline = #9f78e1
-label-connected = %essid%
+label-connected = %essid% %local_ip%
 
 format-disconnected =
 ;format-disconnected = <label-disconnected>
@@ -243,7 +243,7 @@ ramp-signal-foreground = ${colors.foreground-alt}
 
 [module/eth]
 type = internal/network
-interface = ${env:ETH:vethf838df41}
+interface = ${env:ETH:}
 interval = 3.0
 
 format-connected-underline = #55aa55

+ 1 - 1
polybar/.config/polybar/launch.sh

@@ -3,7 +3,7 @@
 pkill polybar
 
 wlan=`/sbin/ifconfig | grep wlp | tail -1 | cut -d ':' -f 1`
-eth=`/sbin/ifconfig | grep veth | tail -1 | cut -d ':' -f 1`
+eth=`/sbin/ifconfig | grep enx | tail -1 | cut -d ':' -f 1`
 
 for m in $(polybar --list-monitors | cut -d":" -f1); do
     WLAN=$wlan ETH=$eth MONITOR=$m polybar --reload primary &