fix: polybar and bspwm config per host

This commit is contained in:
Tobias Reisinger 2020-02-13 18:25:00 +01:00
parent 9c3059af6f
commit 743a3f8f26
3 changed files with 334 additions and 334 deletions

View file

@ -6,8 +6,14 @@ killall -q polybar
# Wait until the processes have been shut down
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
# Launch Polybar, using default config location ~/.config/polybar/config
polybar primary &
polybar secondary &
host_name=$(hostname)
if [[ $host_name == "portalo" ]]; then
polybar portalo-primary &
polybar portalo-secondary &
elif [[ $host_name == *"laptop"* ]]; then
polybar laptop-primary &
else
polybar laptop-primary & # TODO
fi
echo "Polybar launched..."