Switch gslapper with awww

This commit is contained in:
Eriq Taing
2026-09-03 12:49:03 -04:00
parent 45e73fa3b6
commit 3a82ed8079
3 changed files with 18 additions and 24 deletions
+15 -15
View File
@@ -1,4 +1,4 @@
{ pkgs, inputs, ... }:
{ pkgs, ... }:
{
systemd.user.services = {
@@ -22,32 +22,32 @@
];
};
};
gslapper = {
awww = {
Unit = {
Description = "gSlapper Wallpaper Service";
Description = "An Answer to your Wayland Wallpaper Woes";
Documentation = "man:awww-daemon(1)";
PartOf = [
"graphical-session.target"
];
After = [
"graphical-session.target"
"wayland-session@hyprland.desktop.target"
];
Wants = [
Requisite = [
"graphical-session.target"
"wayland-session@hyprland.desktop.target"
];
WantedBy = [
"graphical-session.target"
"wayland-session@hyprland.desktop.target"
];
};
Service = {
Type = "notify";
ExecStart = "${inputs.gslapper.packages.x86_64-linux.gslapper}/bin/gslapper --systemd --restore '*'";
ExecReload = "kill -HUP $MAINPID";
Type = "simple";
ExecStart = "${pkgs.awww}/bin/awww-daemon";
Restart = "on-failure";
RestartSec = "5";
TimeoutStopSec = "30";
RestartSec = "1";
Slice = "app-graphical.slice";
EnvironmentFile = "%h/.config/gslapper/environment";
Environment = "XDG_RUNTIME_DIR=%t";
MemoryMax = "512M";
CPUQuota = "50%";
NoNewPrivileges = "true";
PrivateTmp = "true";
};
Install = {
WantedBy = [