change wallpaper change script to systemd service
This commit is contained in:
parent
b615415531
commit
f7d1929d01
@ -33,7 +33,7 @@ $menu = wofi --show drun
|
|||||||
|
|
||||||
exec-once = waybar
|
exec-once = waybar
|
||||||
exec-once = /home/smayzy/.config/hypr/battery.sh
|
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 = killall waybar && waybar
|
||||||
exec-once = mako
|
exec-once = mako
|
||||||
exec-once = systemctl --user start hyprpolkitagent
|
exec-once = systemctl --user start hyprpolkitagent
|
||||||
|
|||||||
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user