wm/niri: Add a key to present

This commit is contained in:
traxys 2026-02-10 15:21:25 +01:00
parent cef4aa7ae3
commit 6877484085

View file

@ -8,6 +8,7 @@ lib.mkIf (config.traxys.wm == "niri") {
home.packages = with pkgs; [
swaybg
config.traxys.pkgs.xwayland-satellite-unstable
wl-mirror
];
services.gnome-keyring.enable = true;
@ -85,6 +86,7 @@ ckgrounds/nixos/nix-wallpaper-simple-dark-gray.png";
let
inherit (config.lib.niri.actions)
spawn
spawn-sh
close-window
show-hotkey-overlay
toggle-overview
@ -200,6 +202,8 @@ ckgrounds/nixos/nix-wallpaper-simple-dark-gray.png";
"Mod+Shift+KP_Subtract".action = set-window-height "-10%";
"Mod+Shift+KP_Add".action = set-window-height "+10%";
"Mod+P".action = spawn-sh "wl-mirror $(niri msg --json focused-output | jq -r .name)";
# Media Keys
"XF86AudioRaiseVolume" = {
action = spawn "${pkgs.pulseaudio}/bin/pactl" "set-sink-volume" "@DEFAULT_SINK@" "'+10%'";