caelestia/hypr/scripts/monitor-config.fish
2025-06-15 20:58:39 +10:00

8 lines
307 B
Fish
Executable file

#!/bin/fish
set -q XDG_CONFIG_HOME && set -l config $XDG_CONFIG_HOME || set -l config $HOME/.config
set -l config_path $config/caelestia/hypr.json
inotifywait -e 'close_write,moved_to,create' -m (dirname $config_path) | while read dir events file
test "$dir$file" = $config_path && hyprctl reload
end