1 2 3 4 5 6
#!/usr/bin/env zsh SCRIPT_DIR=$(dirname $(realpath $0)) pkill -9 polybar i3-msg exec $SCRIPT_DIR/_undocked_polybar.sh # _ prevents from running in loop