2024-12-12 15:24 : id 394
This commit is contained in:
parent
7093809917
commit
3300740860
@ -100,12 +100,9 @@ in
|
|||||||
text = ''
|
text = ''
|
||||||
file=""
|
file=""
|
||||||
while [ 1 == 1 ]; do
|
while [ 1 == 1 ]; do
|
||||||
new_file=$(cat $HOME/.config/home-manager/themes/wallpaper.png)
|
new_file=$(cat $HOME/scripts/wallpaper-updater.sh)
|
||||||
if [[ "$new_file" != "$file" ]]; then
|
if [[ "$new_file" != "$file" ]]; then
|
||||||
echo "restarting hyprpaper"
|
bash $HOME/scripts/wallpaper-updater.sh
|
||||||
kill -9 $(pgrep hyprpaper)
|
|
||||||
sleep 0.1
|
|
||||||
hyprpaper &
|
|
||||||
fi
|
fi
|
||||||
file=$new_file
|
file=$new_file
|
||||||
done
|
done
|
||||||
@ -116,6 +113,9 @@ in
|
|||||||
text = ''
|
text = ''
|
||||||
magick ${WALLPAPER_PATH} -fuzz 10% -fill "#${BG}" -opaque "$(convert ${WALLPAPER_PATH} -format "%[pixel:u.p{0,0}]" info:-)
|
magick ${WALLPAPER_PATH} -fuzz 10% -fill "#${BG}" -opaque "$(convert ${WALLPAPER_PATH} -format "%[pixel:u.p{0,0}]" info:-)
|
||||||
" ${WALLPAPER_PATH}
|
" ${WALLPAPER_PATH}
|
||||||
|
kill -9 $(pgrep hyprpaper)
|
||||||
|
sleep 1
|
||||||
|
hyprpaper &
|
||||||
'';
|
'';
|
||||||
executable = true;
|
executable = true;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user