flocon/dot_scripts/executable_start-waybar.sh

12 lines
243 B
Bash
Raw Normal View History

2023-09-20 16:16:15 +00:00
#!/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