From 98a3788f4ffdfbf4c91bf4df2d479f305316f787 Mon Sep 17 00:00:00 2001 From: Christoph Urlacher Date: Sat, 21 Mar 2026 01:41:55 +0100 Subject: [PATCH] Modules/Niri: Add wallpaper switcher keybindings --- home/homemodules/niri/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/home/homemodules/niri/default.nix b/home/homemodules/niri/default.nix index b0cc965c..b188311d 100644 --- a/home/homemodules/niri/default.nix +++ b/home/homemodules/niri/default.nix @@ -367,7 +367,7 @@ in { spawn-at-startup = [ {argv = ["ashell" "-c" "${config.paths.dotfiles}/ashell/config.toml"];} - {argv = ["waypaper" "--backend" "swaybg" "--fill" "fill" "--monitor" "All" "--folder" "${config.paths.nixflake}/wallpapers" "--random"];} + {argv = ["waypaper" "--backend" "swaybg" "--fill" "fill" "--monitor" "All" "--folder" "${config.paths.nixflake}/wallpapers" "--restore"];} {argv = ["kitty" "--hold" "fastfetch"];} {argv = ["fcitx5"];} @@ -600,6 +600,14 @@ in { action = spawn "neovide" "${config.paths.dotfiles}/flake.nix"; hotkey-overlay = {title = "Edit the NixFlake.";}; }; + "Mod+W" = { + action = spawn "waypaper" "--backend" "swaybg" "--fill" "fill"; + hotkey-overlay = {title = "Open wallpaper chooser.";}; + }; + "Mod+Shift+W" = { + action = spawn "waypaper" "--backend" "swaybg" "--fill" "fill" "--monitor" "All"; + hotkey-overlay = {title = "Switch wallpaper.";}; + }; "Mod+A" = { action = spawn "walker" "-m" "desktopapplications";