From c05326d1b6dba32bc681b24ca178f471ae9e8044 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 14 Aug 2023 18:34:39 +0400 Subject: Add Mod+F to maximize --- src/input.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/input.rs') diff --git a/src/input.rs b/src/input.rs index 7ea2e457..ec25b22c 100644 --- a/src/input.rs +++ b/src/input.rs @@ -33,6 +33,7 @@ enum Action { MoveToWorkspaceDown, MoveToWorkspaceUp, ToggleWidth, + ToggleFullWidth, } pub enum CompositorMod { @@ -74,7 +75,7 @@ fn action(comp_mod: CompositorMod, keysym: KeysymHandle, mods: ModifiersState) - KEY_E => Action::Quit, KEY_t => Action::SpawnTerminal, KEY_q => Action::CloseWindow, - KEY_f => Action::ToggleFullscreen, + KEY_F => Action::ToggleFullscreen, KEY_h | KEY_Left if mods.ctrl => Action::MoveLeft, KEY_l | KEY_Right if mods.ctrl => Action::MoveRight, KEY_j | KEY_Down if mods.ctrl => Action::MoveDown, @@ -90,6 +91,7 @@ fn action(comp_mod: CompositorMod, keysym: KeysymHandle, mods: ModifiersState) - KEY_comma => Action::ConsumeIntoColumn, KEY_period => Action::ExpelFromColumn, KEY_r => Action::ToggleWidth, + KEY_f => Action::ToggleFullWidth, _ => Action::None, } } @@ -230,6 +232,9 @@ impl Niri { Action::ToggleWidth => { self.monitor_set.toggle_width(); } + Action::ToggleFullWidth => { + self.monitor_set.toggle_full_width(); + } } } } -- cgit