[desktop] Sets up wpaperd to pull wallpaper from monitor-named folders
This commit is contained in:
@@ -2,7 +2,6 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
./hyprpaper.nix
|
|
||||||
./audio.nix
|
./audio.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
./rofi/rofi.nix
|
./rofi/rofi.nix
|
||||||
@@ -30,7 +29,6 @@
|
|||||||
wirelesstools
|
wirelesstools
|
||||||
waypaper # Wallpaper switcher
|
waypaper # Wallpaper switcher
|
||||||
phinger-cursors # Mouse cursors
|
phinger-cursors # Mouse cursors
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# Hint for electron apps to use wayland
|
# Hint for electron apps to use wayland
|
||||||
|
|||||||
15
home-manager/features/wallpaper.nix
Normal file
15
home-manager/features/wallpaper.nix
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
monitors:
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
wayland.windowManager.hyprland.settings.exec-once = [
|
||||||
|
"wpaperd"
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.wpaperd = {
|
||||||
|
enable = true;
|
||||||
|
settings = builtins.listToAttrs (map (mon: {
|
||||||
|
name = mon;
|
||||||
|
value = { path = "~/Pictures/Wallpaper/${mon}"; };
|
||||||
|
}) monitors);
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
"/features/development/haskell.nix"
|
"/features/development/haskell.nix"
|
||||||
"/features/gaming.nix"
|
"/features/gaming.nix"
|
||||||
"/features/linux-desktop.nix"
|
"/features/linux-desktop.nix"
|
||||||
|
"/features/hyprpaper.nix"
|
||||||
"/features/notes.nix"
|
"/features/notes.nix"
|
||||||
"/features/eww"
|
"/features/eww"
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -6,6 +6,8 @@
|
|||||||
"/features/linux-desktop.nix"
|
"/features/linux-desktop.nix"
|
||||||
"/features/notes.nix"
|
"/features/notes.nix"
|
||||||
"/features/eww"
|
"/features/eww"
|
||||||
|
] ++ [
|
||||||
|
(import ../../../home-manager/features/wallpaper.nix [ "HDMI-A-1" ])
|
||||||
];
|
];
|
||||||
|
|
||||||
home.stateVersion = "24.11";
|
home.stateVersion = "24.11";
|
||||||
|
|||||||
Reference in New Issue
Block a user