From 3e37a565f516f57b56249f5e0051978d4c2173af Mon Sep 17 00:00:00 2001 From: listout Date: Sun, 30 Jan 2022 21:41:10 +0530 Subject: Get the wifi interface name from environment variable, from launch script --- .config/polybar/launch.sh | 1 + 1 file changed, 1 insertion(+) (limited to '.config/polybar/launch.sh') diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh index 791b22d..9190a54 100755 --- a/.config/polybar/launch.sh +++ b/.config/polybar/launch.sh @@ -5,6 +5,7 @@ for i in /sys/class/hwmon/hwmon*/temp*_input; do export HWMON_PATH="$i" fi done +export DEFAULT_NETWORK_INTERFACE=$(ip route | grep '^default' | awk '{print $5}' | head -n1) killall -q polybar echo "---" | tee -a /tmp/polybar1.log polybar mybar 2>&1 | tee -a /tmp/polybar1.log & disown -- cgit v1.2.3