aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc
diff options
context:
space:
mode:
authorToby Bridle <foreignspaghettibolognese@gmail.com>2025-03-09 20:55:30 +0000
committerIvan Molodetskikh <yalterz@gmail.com>2025-03-10 22:31:50 -0700
commit47dd338340e2c8c17ce210579bcdcf8f320d755e (patch)
tree2f0707130f1d9d3b5b2066189d69206c9238be5a /niri-ipc
parent87b6c1262544a463703a34d8404ef339b7d18536 (diff)
downloadniri-47dd338340e2c8c17ce210579bcdcf8f320d755e.tar.gz
niri-47dd338340e2c8c17ce210579bcdcf8f320d755e.tar.bz2
niri-47dd338340e2c8c17ce210579bcdcf8f320d755e.zip
feat: 🎉 add `show-pointer` for `Screenshot` and `ScreenshotScreen`
Diffstat (limited to 'niri-ipc')
-rw-r--r--niri-ipc/src/lib.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 15861293..5d4bee78 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -169,7 +169,11 @@ pub enum Action {
delay_ms: Option<u16>,
},
/// Open the screenshot UI.
- Screenshot {},
+ Screenshot {
+ /// Whether to show the mouse pointer by default in the screenshot UI.
+ #[cfg_attr(feature = "clap", arg(short = 'p', long, action = clap::ArgAction::Set, default_value_t = true))]
+ show_pointer: bool,
+ },
/// Screenshot the focused screen.
ScreenshotScreen {
/// Write the screenshot to disk in addition to putting it in your clipboard.
@@ -177,6 +181,10 @@ pub enum Action {
/// The screenshot is saved according to the `screenshot-path` config setting.
#[cfg_attr(feature = "clap", arg(short = 'd', long, action = clap::ArgAction::Set, default_value_t = true))]
write_to_disk: bool,
+
+ /// Whether to include the mouse pointer in the screenshot.
+ #[cfg_attr(feature = "clap", arg(short = 'p', long, action = clap::ArgAction::Set, default_value_t = true))]
+ show_pointer: bool,
},
/// Screenshot a window.
#[cfg_attr(feature = "clap", clap(about = "Screenshot the focused window"))]