new wallpaperthingie
This commit is contained in:
+10
-13
@@ -681,28 +681,25 @@ You can edit assets/hyprland/wallpaperstuff/wallpaper.toml to change settings
|
|||||||
Finally, it creates a systemd user service (wpaperd.service) that automatically starts wpaperd at login and keeps it running, using your override config so wallpapers rotate according to your settings.
|
Finally, it creates a systemd user service (wpaperd.service) that automatically starts wpaperd at login and keeps it running, using your override config so wallpapers rotate according to your settings.
|
||||||
#+BEGIN_SRC nix :tangle generated/out-of-tree/core/rotating_wallpaper.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/out-of-tree/core/rotating_wallpaper.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, lib, flakeRoot, ... }:
|
{ config, pkgs, lib, flakeRoot, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Pad naar de wallpaper config in de flake
|
userConfPath = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.toml";
|
||||||
wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Installeer wpaperd voor de gebruiker
|
|
||||||
home.packages = [ pkgs.wpaperd ];
|
home.packages = [ pkgs.wpaperd ];
|
||||||
|
|
||||||
# Plaats de wallpaper.conf automatisch in $HOME/.config/wpaperd
|
|
||||||
home.file.".config/wpaperd/wallpaper.conf".source = wallpaperConf;
|
|
||||||
|
|
||||||
# Systemd user service
|
|
||||||
systemd.user.services.wpaperd = {
|
systemd.user.services.wpaperd = {
|
||||||
description = "wpaperd wallpaper daemon";
|
Unit = {
|
||||||
wantedBy = [ "default.target" ];
|
Description = "wpaperd wallpaper daemon";
|
||||||
serviceConfig = {
|
After = [ "default.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${config.home.homeDirectory}/.config/wpaperd/wallpaper.conf";
|
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${userConfPath}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 1;
|
RestartSec = 1;
|
||||||
};
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|||||||
@@ -1,25 +1,22 @@
|
|||||||
{ config, pkgs, lib, flakeRoot, ... }:
|
{ config, pkgs, lib, flakeRoot, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
# Pad naar de wallpaper config in de flake
|
userConfPath = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.toml";
|
||||||
wallpaperConf = "${flakeRoot}/assets/hyprland/wallpaperstuff/wallpaper.conf";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
# Installeer wpaperd voor de gebruiker
|
|
||||||
home.packages = [ pkgs.wpaperd ];
|
home.packages = [ pkgs.wpaperd ];
|
||||||
|
|
||||||
# Plaats de wallpaper.conf automatisch in $HOME/.config/wpaperd
|
|
||||||
home.file.".config/wpaperd/wallpaper.conf".source = wallpaperConf;
|
|
||||||
|
|
||||||
# Systemd user service
|
|
||||||
systemd.user.services.wpaperd = {
|
systemd.user.services.wpaperd = {
|
||||||
description = "wpaperd wallpaper daemon";
|
Unit = {
|
||||||
wantedBy = [ "default.target" ];
|
Description = "wpaperd wallpaper daemon";
|
||||||
serviceConfig = {
|
After = [ "default.target" ];
|
||||||
|
};
|
||||||
|
Service = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${config.home.homeDirectory}/.config/wpaperd/wallpaper.conf";
|
ExecStart = "${pkgs.wpaperd}/bin/wpaperd --config ${userConfPath}";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
RestartSec = 1;
|
RestartSec = 1;
|
||||||
};
|
};
|
||||||
|
Install = {
|
||||||
|
WantedBy = [ "default.target" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user