2019-07-18 16:45:46 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-04-05 09:43:56 +00:00
|
|
|
pkill polybar
|
|
|
|
pkill -f "task_manager --daemon"
|
|
|
|
while pgrep -u "$(id -u)" -x polybar >/dev/null; do
|
|
|
|
sleep 0.5;
|
|
|
|
done
|
2019-07-18 16:45:46 +00:00
|
|
|
|
|
|
|
export TERMINAL_CMD="tilix --profile orange --new-process -e"
|
2020-04-05 09:43:56 +00:00
|
|
|
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
|
|
|
|
|
2020-04-05 09:43:56 +00:00
|
|
|
until pgrep -u "$(id -u)" -x polybar >/dev/null; do
|
|
|
|
sleep 0.5
|
|
|
|
done
|
|
|
|
|
2020-04-07 16:24:25 +00:00
|
|
|
~/.config/polybar/scripts/task_manager --daemon 10 &
|