Files
dotfiles/polybar/launch.sh

13 lines
332 B
Bash
Executable File

#!/bin/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
echo "---" | tee -a /tmp/polybar1.log /tmp/polybar2.log
polybar statusBar 2>&1 | tee -a /tmp/polybar1.log & disown
echo "Bars launched..."