[Hyprland] Switch to hyprpaper instead of wpaperd because the latter causes up-side-down images

This commit is contained in:
2026-06-01 10:12:55 -07:00
parent fc1698a5d9
commit e078067a5e
5 changed files with 22 additions and 12 deletions

View File

@@ -48,7 +48,6 @@
# Disable systemd because it conflicts with UWSM # Disable systemd because it conflicts with UWSM
systemd.enable = false; systemd.enable = false;
}; };
programs.hyprlock = { programs.hyprlock = {

View File

@@ -0,0 +1,15 @@
monitors: _: {
services.hyprpaper = {
enable = true;
settings = {
wallpaper = map (mon: {
monitor = mon;
# Each monitor gets a folder under wallpaper that containes the current images.
path = "~/Pictures/Wallpaper/${mon}";
timeout = 3600;
recursive = true;
fit_mode = "cover";
}) monitors;
};
};
}

View File

@@ -1,11 +1,6 @@
monitors: monitors: _: {
{ ... }: # NOTE: Wpaperd displays wallpaper upside-down on 90´ ccw rotated
{ # monitors as of 26.05
# TODO: Merge into hyprland
# wayland.windowManager.hyprland.settings.exec-once = [
# "wpaperd"
# ];
services.wpaperd = { services.wpaperd = {
enable = true; enable = true;
settings = settings =
@@ -13,7 +8,8 @@ monitors:
map (mon: { map (mon: {
name = mon; name = mon;
value = { value = {
# Each monitor gets a folder under wallpaper that containes the current images. # Each monitor gets a folder under wallpaper that
# containes the current images.
path = "~/Pictures/Wallpaper/${mon}"; path = "~/Pictures/Wallpaper/${mon}";
}; };
}) monitors }) monitors

View File

@@ -26,7 +26,7 @@ in
"/features/3d-printing.nix" "/features/3d-printing.nix"
] ]
++ [ ++ [
(import ../../../home-manager/features/wallpaper.nix monitors) (import ../../../home-manager/features/hyprpaper.nix monitors)
]; ];
home = { home = {

View File

@@ -15,7 +15,7 @@
"/features/notes.nix" "/features/notes.nix"
] ]
++ [ ++ [
(import ../../../home-manager/features/wallpaper.nix [ "HDMI-A-1" ]) (import ../../../home-manager/features/hyprpaper.nix [ "HDMI-A-1" ])
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [