aboutsummaryrefslogtreecommitdiff
path: root/niri-ipc/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'niri-ipc/src/lib.rs')
-rw-r--r--niri-ipc/src/lib.rs28
1 files changed, 28 insertions, 0 deletions
diff --git a/niri-ipc/src/lib.rs b/niri-ipc/src/lib.rs
index 53ed4d7e..f5042a9e 100644
--- a/niri-ipc/src/lib.rs
+++ b/niri-ipc/src/lib.rs
@@ -354,6 +354,34 @@ pub enum Action {
MoveWorkspaceDown {},
/// Move the focused workspace up.
MoveWorkspaceUp {},
+ /// Set the name of a workspace.
+ #[cfg_attr(
+ feature = "clap",
+ clap(about = "Set the name of the focused workspace")
+ )]
+ SetWorkspaceName {
+ /// New name for the workspace.
+ #[cfg_attr(feature = "clap", arg())]
+ name: String,
+
+ /// Reference (index or name) of the workspace to name.
+ ///
+ /// If `None`, uses the focused workspace.
+ #[cfg_attr(feature = "clap", arg(long))]
+ workspace: Option<WorkspaceReferenceArg>,
+ },
+ /// Unset the name of a workspace.
+ #[cfg_attr(
+ feature = "clap",
+ clap(about = "Unset the name of the focused workspace")
+ )]
+ UnsetWorkspaceName {
+ /// Reference (index or name) of the workspace to unname.
+ ///
+ /// If `None`, uses the focused workspace.
+ #[cfg_attr(feature = "clap", arg())]
+ reference: Option<WorkspaceReferenceArg>,
+ },
/// Focus the monitor to the left.
FocusMonitorLeft {},
/// Focus the monitor to the right.