nixos: unify wallpapers via syncthing
Start hyprpaper via a user service and set wallpaper via IPC on session start.\nPoint xmonad random-background at the same Syncthing wallpaper directory (X11 only).
This commit is contained in:
@@ -42,8 +42,10 @@ makeEnable config "myModules.xmonad" true {
|
||||
enable = true;
|
||||
display = "fill";
|
||||
interval = "1h";
|
||||
imageDirectory = "/var/lib/syncthing/sync/Wallpaper/";
|
||||
imageDirectory = "/var/lib/syncthing/sync/Wallpaper";
|
||||
};
|
||||
# This service uses feh (X11), so don't run it in Wayland sessions.
|
||||
systemd.user.services.random-background.Unit.ConditionEnvironment = "XDG_SESSION_TYPE=x11";
|
||||
|
||||
services.xsettingsd.enable = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user