mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-23 02:05:33 +07:00
feat: 🎉 add show-pointer for Screenshot and ScreenshotScreen
This commit is contained in:
committed by
Ivan Molodetskikh
parent
87b6c12625
commit
47dd338340
@@ -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).
|
||||
|
||||
<sup>Since: 25.02</sup> 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 <kbd>Ctrl</kbd><kbd>C</kbd> will copy the screenshot to the clipboard without writing it to disk.
|
||||
|
||||
<sup>Since: next release</sup> 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`
|
||||
|
||||
<sup>Since: 25.02</sup>
|
||||
|
||||
Reference in New Issue
Block a user