1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/bin/waybar

20 lines
340 B
Text
Raw Permalink Normal View History

2023-05-14 16:02:54 +02:00
#!/bin/bash -x
2023-04-13 00:04:20 +02:00
# Waybar wrapper to reload it anytime the
# configuration is edited
# Variable
waybar_config_d="${HOME}/.config/waybar"
monitored_events=(
modify
create
delete
)
# Execution
while :; do
/usr/bin/waybar "$@" &
inotifywait "${monitored_events[@]/#/-e}" "${waybar_config_d}"
jobs -p | xargs kill
done