2024-12-12 00:01 : id 338

This commit is contained in:
deadvey 2024-12-12 00:01:44 +00:00
parent 0a6b3d103d
commit 2635556ec1

View File

@ -94,18 +94,15 @@ in
file = { file = {
".config/hypr/wallpaper-watcher.sh" = { ".config/hypr/wallpaper-watcher.sh" = {
text = '' text = ''
while true; do file=$(cat $HOME/.config/hypr/hyprpaper.sh)
echo "test" while [ 1 == 1 ]; do
ls -d $HOME/.config/hypr * | entr bash -c "bash $HOME/.config/hypr/restart-wallpaper.sh &" new_file=$(cat $HOME/.config/hypr/hyprpaper.sh)
done if [[ "$new_file" != "$file" ]]; then
'';
executable = true;
};
".config/hypr/restart-wallpaper.sh" = {
text = ''
kill $(pgrep hyprpaper) kill $(pgrep hyprpaper)
sleep 0.2
hyprpaper & hyprpaper &
fi
file=$new_file
done
''; '';
executable = true; executable = true;
}; };