2024-12-12 00:01 : id 338
This commit is contained in:
parent
0a6b3d103d
commit
2635556ec1
@ -94,18 +94,15 @@ in
|
||||
file = {
|
||||
".config/hypr/wallpaper-watcher.sh" = {
|
||||
text = ''
|
||||
while true; do
|
||||
echo "test"
|
||||
ls -d $HOME/.config/hypr * | entr bash -c "bash $HOME/.config/hypr/restart-wallpaper.sh &"
|
||||
done
|
||||
'';
|
||||
executable = true;
|
||||
};
|
||||
".config/hypr/restart-wallpaper.sh" = {
|
||||
text = ''
|
||||
file=$(cat $HOME/.config/hypr/hyprpaper.sh)
|
||||
while [ 1 == 1 ]; do
|
||||
new_file=$(cat $HOME/.config/hypr/hyprpaper.sh)
|
||||
if [[ "$new_file" != "$file" ]]; then
|
||||
kill $(pgrep hyprpaper)
|
||||
sleep 0.2
|
||||
hyprpaper &
|
||||
fi
|
||||
file=$new_file
|
||||
done
|
||||
'';
|
||||
executable = true;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user