mirror of
https://github.com/kmein/niveum
synced 2026-03-22 12:51:08 +01:00
move to wayland
This commit is contained in:
@@ -12,18 +12,26 @@ in
|
||||
systemd.user.services.wallpaper = {
|
||||
wantedBy = [ "graphical-session.target" ];
|
||||
after = [ "network.target" ];
|
||||
path = [
|
||||
pkgs.curl
|
||||
pkgs.hyprland
|
||||
];
|
||||
script = ''
|
||||
set -euf
|
||||
|
||||
mkdir -p ${stateDir}
|
||||
chmod o+rx ${stateDir}
|
||||
cd ${stateDir}
|
||||
(${pkgs.curl}/bin/curl -s -o wallpaper.tmp -z wallpaper.tmp ${lib.escapeShellArg url} && cp wallpaper.tmp wallpaper) || :
|
||||
${pkgs.feh}/bin/feh --no-fehbg --bg-scale wallpaper
|
||||
(${pkgs.curl}/bin/curl -s -o wallpaper.tmp -z wallpaper.tmp ${lib.escapeShellArg url} && cp wallpaper.tmp wallpaper.png) || :
|
||||
hyprctl hyprpaper preload ${stateDir}/wallpaper.png
|
||||
hyprctl hyprpaper wallpaper ",${stateDir}/wallpaper.png"
|
||||
sleep 5
|
||||
hyprctl hyprpaper unload unused
|
||||
true
|
||||
'';
|
||||
startAt = "*:00,10,20,30,40,50";
|
||||
serviceConfig = {
|
||||
Restart = "always";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "15s";
|
||||
StartLimitBurst = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user