From 3fa5ef244165a8c4272108d7e701f34809d654c6 Mon Sep 17 00:00:00 2001 From: Weckyy702 Date: Sat, 20 Jun 2026 04:13:28 +0200 Subject: [PATCH] wpaperd+tux: Implement wallpaper switching by keybind required using the unstable version of wpaperd --- modules/factory/wpaperd.nix | 3 ++- modules/hosts/tux/users/weckyy702/wallpaper.nix | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/factory/wpaperd.nix b/modules/factory/wpaperd.nix index 51880f6..9b71095 100644 --- a/modules/factory/wpaperd.nix +++ b/modules/factory/wpaperd.nix @@ -1,8 +1,9 @@ { - config.flake.factory.wpaperd = config: { + config.flake.factory.wpaperd = config: { pkgs, ... }: { services.wpaperd = { enable = true; settings = config; + package = pkgs.unstable.wpaperd; }; }; } diff --git a/modules/hosts/tux/users/weckyy702/wallpaper.nix b/modules/hosts/tux/users/weckyy702/wallpaper.nix index 6ed01d4..8b08b68 100644 --- a/modules/hosts/tux/users/weckyy702/wallpaper.nix +++ b/modules/hosts/tux/users/weckyy702/wallpaper.nix @@ -32,8 +32,9 @@ }) ]; -# wayland.windowManager.hyprland.settings.bind = { -# _args "$mod, i, exec, wpaperctl next" -# }; + 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")) + ''; }; }