diff options
| author | rustn00b <83183600+rustn00b@users.noreply.github.com> | 2025-01-10 06:03:19 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-10 06:03:19 +0000 |
| commit | 5958d3be62b3abe21613567af28beb4d7d118205 (patch) | |
| tree | 1d270b02f5c807c527c8ca236fa7494181612610 /src/input | |
| parent | 142e57450dae5eba25b7f306d3c6dc9f51518a3d (diff) | |
| download | niri-5958d3be62b3abe21613567af28beb4d7d118205.tar.gz niri-5958d3be62b3abe21613567af28beb4d7d118205.tar.bz2 niri-5958d3be62b3abe21613567af28beb4d7d118205.zip | |
Allow workspace names to be changed dynamically (#904)
* Add un/set workspace name actions
* Add SetWorkspaceName reference to proptests
* Simplify unname_workspace
* Add ewaf version of set first workspace name test
* Simplify more
* Fix comment
* Make workspace in set-workspace-name a positional option
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'src/input')
| -rw-r--r-- | src/input/mod.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs index 576bc2f5..2b0d1914 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -1120,6 +1120,18 @@ impl State { // FIXME: granular self.niri.queue_redraw_all(); } + Action::SetWorkspaceName(name) => { + self.niri.layout.set_workspace_name(name, None); + } + Action::SetWorkspaceNameByRef { name, reference } => { + self.niri.layout.set_workspace_name(name, Some(reference)); + } + Action::UnsetWorkspaceName => { + self.niri.layout.unset_workspace_name(None); + } + Action::UnsetWorkSpaceNameByRef(reference) => { + self.niri.layout.unset_workspace_name(Some(reference)); + } Action::ConsumeWindowIntoColumn => { self.niri.layout.consume_into_column(); // This does not cause immediate focus or window size change, so warping mouse to |
