change wallpaper change script to systemd service

This commit is contained in:
smayzy 2025-07-15 15:39:10 +02:00
parent b615415531
commit f7d1929d01
2 changed files with 14 additions and 1 deletions

View File

@ -33,7 +33,7 @@ $menu = wofi --show drun
exec-once = waybar
exec-once = /home/smayzy/.config/hypr/battery.sh
exec = /home/smayzy/.config/hypr/wallpaper.sh
exec-once = systemctl --user start hypr-wallpaper.service
exec = killall waybar && waybar
exec-once = mako
exec-once = systemctl --user start hyprpolkitagent

View File

@ -54,6 +54,19 @@ in
};
})
];
systemd.user.services.hypr-wallpaper = {
Unit = {
Description = "Wallpaper auto-changer";
};
Service = {
ExecStart = "${pkgs.bash}/bin/bash /home/smayzy/.config/hypr/wallpaper.sh";
Restart = "always";
RestartSec = 10;
};
};
};
}