diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-16 12:14:02 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2023-09-16 12:14:02 +0400 |
| commit | 37ec5242640b432c57a3f8a97ae3ebcc46b9e3f3 (patch) | |
| tree | f63522e7a4905165c97f96e3564568c6f89ad00f /src/config.rs | |
| parent | e5d7732880f2ef5db90173a7c79afee77d362f81 (diff) | |
| download | niri-37ec5242640b432c57a3f8a97ae3ebcc46b9e3f3.tar.gz niri-37ec5242640b432c57a3f8a97ae3ebcc46b9e3f3.tar.bz2 niri-37ec5242640b432c57a3f8a97ae3ebcc46b9e3f3.zip | |
Add by-index workspace commands and binds
Diffstat (limited to 'src/config.rs')
| -rw-r--r-- | src/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index cfa1b991..a5030ea4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -110,8 +110,10 @@ pub enum Action { ExpelWindowFromColumn, FocusWorkspaceDown, FocusWorkspaceUp, + FocusWorkspace(#[knuffel(argument)] u8), MoveWindowToWorkspaceDown, MoveWindowToWorkspaceUp, + MoveWindowToWorkspace(#[knuffel(argument)] u8), FocusMonitorLeft, FocusMonitorRight, FocusMonitorDown, @@ -260,6 +262,7 @@ mod tests { Mod+Shift+H { focus-monitor-left; } Mod+Ctrl+Shift+L { move-window-to-monitor-right; } Mod+Comma { consume-window-into-column; } + Mod+1 { focus-workspace 1;} } debug { @@ -317,6 +320,13 @@ mod tests { }, actions: vec![Action::ConsumeWindowIntoColumn], }, + Bind { + key: Key { + keysym: KEY_1, + modifiers: Modifiers::COMPOSITOR, + }, + actions: vec![Action::FocusWorkspace(1)], + }, ]), debug: DebugConfig { animation_slowdown: 2., |
