flocon/scripts/.scripts/start-waybar.sh
2023-06-01 11:26:29 +02:00

11 lines
243 B
Bash
Executable file

#!/bin/sh
CONFIG_FILES="$HOME/.config/waybar/config.jsonc $HOME/.config/waybar/style.css"
trap "killall waybar" EXIT
while true; do
waybar &
inotifywait -e create,modify $CONFIG_FILES
killall waybar
done