1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-09-16 09:32:38 +00:00
dotfiles/.config/polybar/launch.sh

14 lines
381 B
Bash
Raw Normal View History

2019-07-18 16:45:46 +00:00
#!/usr/bin/env bash
killall -q polybar
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
export TERMINAL_CMD="tilix --profile orange --new-process -e"
export WM_CONTROL="$(dirname $0)/scripts/switch_window_state"
2019-07-18 16:45:46 +00:00
for monitor in $(polybar --list-monitors | cut -d":" -f1); do
export MONITOR=$monitor
polybar top -c ~/.config/polybar/bar.ini >/dev/null &
done