From 47dd338340e2c8c17ce210579bcdcf8f320d755e Mon Sep 17 00:00:00 2001 From: Toby Bridle Date: Sun, 9 Mar 2025 20:55:30 +0000 Subject: feat: 🎉 add `show-pointer` for `Screenshot` and `ScreenshotScreen` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wiki/Configuration:-Key-Bindings.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'wiki') diff --git a/wiki/Configuration:-Key-Bindings.md b/wiki/Configuration:-Key-Bindings.md index 24efa839..640f6fd4 100644 --- a/wiki/Configuration:-Key-Bindings.md +++ b/wiki/Configuration:-Key-Bindings.md @@ -306,9 +306,13 @@ binds { } ``` -#### `screenshot-screen`, `screenshot-window` +#### `screenshot`, `screenshot-screen`, `screenshot-window` + +Actions for taking screenshots. + +- `screenshot`: opens the built-in interactive screenshot UI. +- `screenshot-screen`, `screenshow-window`: takes a screenshot of the focused screen or window respectively. -Take a screenshot of the focused screen or window respectively. The screenshot is both stored to the clipboard and saved to disk, according to the [`screenshot-path` option](./Configuration:-Miscellaneous.md). Since: 25.02 You can disable saving to disk for a specific bind with the `write-to-disk=false` property: @@ -320,6 +324,21 @@ binds { } ``` +In the interactive screenshot UI, pressing CtrlC will copy the screenshot to the clipboard without writing it to disk. + +Since: next release You can hide the mouse pointer in screenshots with the `show-pointer=false` property: + +```kdl +binds { + // The pointer will be hidden by default + // (you can still show it by pressing P). + Print { screenshot show-pointer=false; } + + // The pointer will be hidden on the screenshot. + Ctrl+Print { screenshot-screen show-pointer=false; } +} +``` + #### `toggle-keyboard-shortcuts-inhibit` Since: 25.02 -- cgit