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
+1 -7
View File
@@ -9,24 +9,18 @@
url = "github:nix-community/stylix"; url = "github:nix-community/stylix";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
gslapper = {
url = "github:Nomadcxx/gSlapper";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = outputs =
inputs@{ {
nixpkgs, nixpkgs,
home-manager, home-manager,
stylix, stylix,
gslapper,
... ...
}: }:
{ {
homeConfigurations."eriq12" = home-manager.lib.homeManagerConfiguration { homeConfigurations."eriq12" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux; pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [ modules = [
stylix.homeModules.stylix stylix.homeModules.stylix
./home.nix ./home.nix
+2 -2
View File
@@ -54,8 +54,6 @@
r2modman r2modman
mission-center mission-center
localsend localsend
# editors
zed-editor
# clipboard # clipboard
wl-clipboard wl-clipboard
# theming # theming
@@ -77,6 +75,7 @@
MimeType=image/x-canon-crw;image/x-canon-cr2;image/x-canon-cr3;image/x-adobe-dng;image/x-dng; MimeType=image/x-canon-crw;image/x-canon-cr2;image/x-canon-cr3;image/x-adobe-dng;image/x-dng;
''; '';
}) })
awww
]; ];
# theming # theming
@@ -135,6 +134,7 @@
update = "home-manager switch"; update = "home-manager switch";
}; };
}; };
zed-editor.enable = true;
zoxide.enable = true; zoxide.enable = true;
git = { git = {
enable = true; enable = true;
+15 -15
View File
@@ -1,4 +1,4 @@
{ pkgs, inputs, ... }: { pkgs, ... }:
{ {
systemd.user.services = { systemd.user.services = {
@@ -22,32 +22,32 @@
]; ];
}; };
}; };
gslapper = { awww = {
Unit = { Unit = {
Description = "gSlapper Wallpaper Service"; Description = "An Answer to your Wayland Wallpaper Woes";
Documentation = "man:awww-daemon(1)";
PartOf = [
"graphical-session.target"
];
After = [ After = [
"graphical-session.target" "graphical-session.target"
"wayland-session@hyprland.desktop.target" "wayland-session@hyprland.desktop.target"
]; ];
Wants = [ Requisite = [
"graphical-session.target"
"wayland-session@hyprland.desktop.target"
];
WantedBy = [
"graphical-session.target" "graphical-session.target"
"wayland-session@hyprland.desktop.target" "wayland-session@hyprland.desktop.target"
]; ];
}; };
Service = { Service = {
Type = "notify"; Type = "simple";
ExecStart = "${inputs.gslapper.packages.x86_64-linux.gslapper}/bin/gslapper --systemd --restore '*'"; ExecStart = "${pkgs.awww}/bin/awww-daemon";
ExecReload = "kill -HUP $MAINPID";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "5"; RestartSec = "1";
TimeoutStopSec = "30";
Slice = "app-graphical.slice"; Slice = "app-graphical.slice";
EnvironmentFile = "%h/.config/gslapper/environment";
Environment = "XDG_RUNTIME_DIR=%t";
MemoryMax = "512M";
CPUQuota = "50%";
NoNewPrivileges = "true";
PrivateTmp = "true";
}; };
Install = { Install = {
WantedBy = [ WantedBy = [