From cd6522bcc64f657527d21305bdcdc9b212fc1ec1 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Thu, 20 Feb 2025 19:37:22 +0300 Subject: wiki: Mention screenshow-screen/window write-to-disk=false --- wiki/Configuration:-Key-Bindings.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/wiki/Configuration:-Key-Bindings.md b/wiki/Configuration:-Key-Bindings.md index 27ad7692..9f8c8ffa 100644 --- a/wiki/Configuration:-Key-Bindings.md +++ b/wiki/Configuration:-Key-Bindings.md @@ -303,3 +303,17 @@ binds { Mod+O { toggle-window-rule-opacity; } } ``` + +#### `screenshot-screen`, `screenshot-window` + +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: next release You can disable saving to disk for a specific bind with the `write-to-disk=false` property: + +```kdl +binds { + Ctrl+Print { screenshot-screen write-to-disk=false; } + Alt+Print { screenshot-window write-to-disk=false; } +} +``` -- cgit