1

Modules/Niri: Add wallpaper switcher keybindings

This commit is contained in:
2026-03-21 01:41:55 +01:00
parent ac4b005f9b
commit 98a3788f4f

View File

@ -367,7 +367,7 @@ in {
spawn-at-startup = [ spawn-at-startup = [
{argv = ["ashell" "-c" "${config.paths.dotfiles}/ashell/config.toml"];} {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 = ["kitty" "--hold" "fastfetch"];}
{argv = ["fcitx5"];} {argv = ["fcitx5"];}
@ -600,6 +600,14 @@ in {
action = spawn "neovide" "${config.paths.dotfiles}/flake.nix"; action = spawn "neovide" "${config.paths.dotfiles}/flake.nix";
hotkey-overlay = {title = "Edit the NixFlake.";}; 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" = { "Mod+A" = {
action = spawn "walker" "-m" "desktopapplications"; action = spawn "walker" "-m" "desktopapplications";