[Hyprland] Switch to hyprpaper instead of wpaperd because the latter causes up-side-down images
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
15
home-manager/features/hyprpaper.nix
Normal file
15
home-manager/features/hyprpaper.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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
|
||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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; [
|
||||||
|
|||||||
Reference in New Issue
Block a user