You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
490 B
18 lines
490 B
3 years ago
|
#!/bin/bash
|
||
|
|
||
|
# Terminate already running bar instances
|
||
|
killall -q polybar
|
||
|
# If all your bars have ipc enabled, you can also use
|
||
|
# polybar-msg cmd quit
|
||
|
|
||
|
# Launch Polybar, using default config location ~/.config/polybar/config
|
||
3 years ago
|
if type "xrandr"; then
|
||
|
for m in $(xrandr --query | grep " connected" | cut -d" " -f1); do
|
||
|
MONITOR=$m polybar system 2>&1 | tee -a /tmp/polybar.log & disown
|
||
|
done
|
||
|
else
|
||
|
polybar system 2>&1 | tee -a /tmp/polybar.log & disown
|
||
|
fi
|
||
3 years ago
|
|
||
|
echo "Polybar launched..."
|