add : main arch desktop polybar config launch.sh
This commit is contained in:
13
configs/polybar_g/MainArch/launch.sh
Executable file
13
configs/polybar_g/MainArch/launch.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Terminate already running bar instances
|
||||
# If all your bars have ipc enabled, you can use
|
||||
polybar-msg cmd quit
|
||||
# Otherwise you can use the nuclear option:
|
||||
# killall -q polybar
|
||||
|
||||
# Launch bar on each monitor, tray on primary
|
||||
polybar --list-monitors | while IFS=$'\n' read line; do
|
||||
monitor=$(echo $line | cut -d':' -f1)
|
||||
primary=$(echo $line | cut -d' ' -f3)
|
||||
MONITOR=$monitor polybar --reload "top${primary:+"-primary"}" &
|
||||
done
|
||||
Reference in New Issue
Block a user