nixos/config/waybar/launch-waybar.sh

13 lines
201 B
Bash
Raw Permalink Normal View History

2023-07-22 20:43:21 +04:00
#!/bin/sh
2023-07-22 21:17:39 +04:00
CONFIG_FILES="/home/sako/.config/waybar"
2023-07-22 20:43:21 +04:00
trap "killall waybar" EXIT
while true; do
waybar &
2023-07-22 23:36:31 +04:00
export APP_PID=$!
2023-07-22 20:43:21 +04:00
inotifywait -e create,modify $CONFIG_FILES
2023-07-22 23:36:31 +04:00
kill $APP_PID
2023-07-22 20:43:21 +04:00
done