aboutsummaryrefslogtreecommitdiffstats
path: root/dotconfig/polybar/launch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dotconfig/polybar/launch.sh')
-rwxr-xr-xdotconfig/polybar/launch.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dotconfig/polybar/launch.sh b/dotconfig/polybar/launch.sh
index 510d097..829d7ac 100755
--- a/dotconfig/polybar/launch.sh
+++ b/dotconfig/polybar/launch.sh
@@ -6,7 +6,10 @@ killall -9 polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
+# Set variables
+NETWORK_TYPE="wired" # or `wireless`
+
# Launch the bar
echo "---" | tee -a /tmp/mypolybar.log
-polybar main >> /tmp/mypolybar.log 2>&1 & disown
+NETWORK_TYPE=$NETWORK_TYPE polybar main >> /tmp/mypolybar.log 2>&1 & disown
echo "Bar launched..."