From 52f2e375529ed2f9ec4880cb5a441f948dacc38b Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sat, 17 Jan 2026 14:57:39 -0600 Subject: [PATCH] Adding bindings for screenshot in Niri; also adding rules for cursor to hide-when-typing. --- .config/niri/config.kdl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index e979861..c3a19fb 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -113,6 +113,12 @@ environment { _JAVA_AWT_WM_NONREPARENTING "1" // GLFW_PLATFORM "x11" } + +// Hide cursor when typing; also hides cursor from screenshots! +cursor { + hide-when-typing +} + // Settings that influence how windows are positioned and sized. // Find more information on the wiki: // https://yalter.github.io/niri/Configuration:-Layout @@ -302,7 +308,7 @@ prefer-no-csd // You can change the path where screenshots are saved. // A ~ at the front will be expanded to the home directory. // The path is formatted with strftime(3) to give you the screenshot date and time. -screenshot-path "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png" +screenshot-path "~/Screenshots/scrot-%Y-%m-%d %H-%M-%S.png" // You can also set this to null to disable saving screenshots to disk. // screenshot-path null @@ -582,9 +588,9 @@ binds { // Mod+Space { switch-layout "next"; } // Mod+Shift+Space { switch-layout "prev"; } - Print { screenshot; } - Ctrl+Print { screenshot-screen; } - Alt+Print { screenshot-window; } + Mod+apostrophe { screenshot-screen; } + Mod+Alt+apostrophe { screenshot-window; } + Mod+Shift+apostrophe { screenshot; } // Applications such as remote-desktop clients and software KVM switches may // request that niri stops processing the keyboard shortcuts defined here