feat(services): add wallpaperengine service and update configs
This commit is contained in:
@@ -12,5 +12,6 @@
|
||||
./hyprmon.nix
|
||||
./hyprland.nix
|
||||
./hyprpaper.nix
|
||||
./wallpaperengine.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
transform = 0;
|
||||
supports_wide_color = 1;
|
||||
supports_hdr = 1;
|
||||
bitdepth = 10;
|
||||
cm = "hdr";
|
||||
sdrbrightness = 0.005;
|
||||
sdrsaturation = 200;
|
||||
# bitdepth = 10;
|
||||
# cm = "hdr";
|
||||
# sdrbrightness = 0.005;
|
||||
# sdrsaturation = 200;
|
||||
}
|
||||
{
|
||||
output = device.monitors.secondary;
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
nextcloudWallpapers = name: config.home.homeDirectory + "/Nextcloud/Wallpapers/" + name;
|
||||
silksongFleas = nextcloudWallpapers "silksong-fleas.jpg";
|
||||
in {
|
||||
enable = device.is "ryu";
|
||||
# enable = true;
|
||||
enable = true;
|
||||
systemd.enable = true;
|
||||
systemd.target = "hyprland-session.target";
|
||||
settings.preload =
|
||||
@@ -22,7 +21,7 @@
|
||||
silksongFleas
|
||||
];
|
||||
settings.wallpapers = {
|
||||
"${device.monitors.primary}" = silksongFleas;
|
||||
# "${device.monitors.primary}" = silksongFleas;
|
||||
"${device.monitors.secondary}" = wallpapers.frieren_3;
|
||||
"${device.monitors.tertiary}" = wallpapers.hornet;
|
||||
};
|
||||
|
||||
32
home/services/wallpaperengine.nix
Normal file
32
home/services/wallpaperengine.nix
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
pkgs,
|
||||
device,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
lib.mkIf (device.is "ryu") {
|
||||
systemd.user.services.wallpaperengine = {
|
||||
Unit = {
|
||||
Description = "Linux Wallpaper Engine";
|
||||
After = ["hyprland-session.target"];
|
||||
Wants = ["hyprland-session.target"];
|
||||
PartOf = ["hyprland-session.target"];
|
||||
};
|
||||
|
||||
Service = {
|
||||
Environment = [
|
||||
"XDG_SESSION_TYPE=wayland"
|
||||
];
|
||||
Type = "simple";
|
||||
ExecStartPre = "${pkgs.coreutils}/bin/sleep 3";
|
||||
ExecStart = "${pkgs.linux-wallpaperengine}/bin/linux-wallpaperengine --scaling fill --screen-root HDMI-A-1 --bg 2780316434";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
TimeoutStartSec = 30;
|
||||
};
|
||||
|
||||
Install = {
|
||||
WantedBy = ["hyprland-session.target"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user