Replace hyprpaper with gslapper
This commit is contained in:
+18
-4
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, inputs, ... }:
|
||||
|
||||
{
|
||||
systemd.user.services = {
|
||||
@@ -22,18 +22,32 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
hyprpaper = {
|
||||
gslapper = {
|
||||
Unit = {
|
||||
Description = "A simple background program for the hypr ecosystem.";
|
||||
Description = "gSlapper Wallpaper Service";
|
||||
After = [
|
||||
"graphical-session.target"
|
||||
"wayland-session@hyprland.desktop.target"
|
||||
];
|
||||
Wants = [
|
||||
"graphical-session.target"
|
||||
"wayland-session@hyprland.desktop.target"
|
||||
];
|
||||
};
|
||||
Service = {
|
||||
ExecStart = "${pkgs.hyprpaper}/bin/hyprpaper";
|
||||
Type = "notify";
|
||||
ExecStart = "${inputs.gslapper.packages.x86_64-linux.gslapper}/bin/gslapper --systemd --restore '*'";
|
||||
ExecReload = "kill -HUP $MAINPID";
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5";
|
||||
TimeoutStopSec = "30";
|
||||
Slice = "app-graphical.slice";
|
||||
EnvironmentFile = "%h/.config/gslapper/environment";
|
||||
Environment = "XDG_RUNTIME_DIR=%t";
|
||||
MemoryMax = "512M";
|
||||
CPUQuota = "50%";
|
||||
NoNewPrivileges = "true";
|
||||
PrivateTmp = "true";
|
||||
};
|
||||
Install = {
|
||||
WantedBy = [
|
||||
|
||||
Reference in New Issue
Block a user