Files
nix-config/modules/hosts/tux/users/weckyy702/wallpaper.nix
T
Weckyy702 3fa5ef2441 wpaperd+tux: Implement wallpaper switching by keybind
required using the unstable version of wpaperd
2026-06-20 04:13:28 +02:00

41 lines
1.0 KiB
Nix

{ inputs, ... }: {
flake-file.inputs = {
aghpb = {
url = "github:cat-milk/Anime-Girls-Holding-Programming-Books";
flake = false;
};
orly-covers = {
url = "github:thepracticaldev/orly-full-res";
flake = false;
};
};
flake.modules.homeManager.randomized-aghpb-wallpaper = { pkgs, ... }:
let
combined_wallpapers = pkgs.symlinkJoin {
name = "joined-wallpapers";
paths = with inputs; [
aghpb
orly-covers
];
};
in
{
imports = with inputs.self.factory; [
(wpaperd {
default = {
path = combined_wallpapers;
recursive = true;
mode = "stretch";
duration = "5m";
};
})
];
wayland.windowManager.hyprland.extraConfig = ''
hl.bind("SUPER + i", hl.dsp.exec_cmd("${pkgs.unstable.wpaperd}/bin/wpaperctl next"))
hl.bind("SUPER + o", hl.dsp.exec_cmd("${pkgs.unstable.wpaperd}/bin/wpaperctl set ${inputs.assets}/horizontal_16x9.png"))
'';
};
}