aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc
diff options
context:
space:
mode:
authorDuncan Overbruck <mail@duncano.de>2025-03-27 19:38:14 +0100
committerIvan Molodetskikh <yalterz@gmail.com>2025-05-10 12:14:41 -0700
commit9d3d7cb0e973827e5fcaa5d312a05695564a44c0 (patch)
treed8b340220a4127d79a18d2e634ce80d13dd6048c /niri-ipc
parent398bc78ea073e0e61c6ba67ddcbaad0a5d574eeb (diff)
downloadniri-9d3d7cb0e973827e5fcaa5d312a05695564a44c0.tar.gz
niri-9d3d7cb0e973827e5fcaa5d312a05695564a44c0.tar.bz2
niri-9d3d7cb0e973827e5fcaa5d312a05695564a44c0.zip
add {toggle,set,unset}-urgent cli actions
Diffstat (limited to 'niri-ipc')
-rw-r--r--niri-ipc/src/lib.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index fcb2d1ff..86388f16 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -803,6 +803,24 @@ pub enum Action {
OpenOverview {},
/// Close the Overview.
CloseOverview {},
+ /// Toggle urgent status of a window.
+ ToggleUrgent {
+ /// Id of the window to toggle urgent.
+ #[cfg_attr(feature = "clap", arg(long))]
+ id: u64,
+ },
+ /// Set urgent status of a window.
+ SetUrgent {
+ /// Id of the window to set urgent.
+ #[cfg_attr(feature = "clap", arg(long))]
+ id: u64,
+ },
+ /// Unset urgent status of a window.
+ UnsetUrgent {
+ /// Id of the window to unset urgent.
+ #[cfg_attr(feature = "clap", arg(long))]
+ id: u64,
+ },
}
/// Change in window or column size.