2024-12-12 14:55 : id 378
This commit is contained in:
parent
32d4e58c70
commit
984741579b
@ -101,7 +101,7 @@ in
|
|||||||
if [[ "$new_file" != "$file" ]]; then
|
if [[ "$new_file" != "$file" ]]; then
|
||||||
echo "restarting hyprpaper"
|
echo "restarting hyprpaper"
|
||||||
kill -9 $(pgrep hyprpaper)
|
kill -9 $(pgrep hyprpaper)
|
||||||
sleep 0.2
|
sleep 0.1
|
||||||
hyprpaper &
|
hyprpaper &
|
||||||
fi
|
fi
|
||||||
file=$new_file
|
file=$new_file
|
||||||
@ -109,6 +109,15 @@ in
|
|||||||
'';
|
'';
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
"~/scripts/wallpaper-updater.sh" = {
|
||||||
|
text = ''
|
||||||
|
magick input.png -fuzz 10% -fill ${BG} -opaque "$(convert input.png -format "%[pixel:u.p{0,0}]" info:-)" output.png
|
||||||
|
'';
|
||||||
|
executable = true;
|
||||||
|
};
|
||||||
|
".postBuild" = pkgs.writeShellScript "run-my-script" ''
|
||||||
|
bash $HOME/scripts/wallpaper-updater.sh
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
gtk = {
|
gtk = {
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 190 KiB |
Loading…
x
Reference in New Issue
Block a user