From b3c6f0e661878c7ab4f3c84c480ae61a5de5d3b3 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Fri, 3 Jan 2025 17:26:25 +0300 Subject: [PATCH] Add floating binds to the hotkey overlay --- src/ui/hotkey_overlay.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ui/hotkey_overlay.rs b/src/ui/hotkey_overlay.rs index 4bdfddc60..ff4ffef54 100644 --- a/src/ui/hotkey_overlay.rs +++ b/src/ui/hotkey_overlay.rs @@ -203,6 +203,8 @@ fn render( &Action::MaximizeColumn, &Action::ConsumeOrExpelWindowLeft, &Action::ConsumeOrExpelWindowRight, + &Action::ToggleWindowFloating, + &Action::SwitchFocusBetweenFloatingAndTiling, ]); // Screenshot is not as important, can omit if not bound. @@ -378,6 +380,10 @@ fn action_name(action: &Action) -> String { Action::MaximizeColumn => String::from("Maximize Column"), Action::ConsumeOrExpelWindowLeft => String::from("Consume or Expel Window Left"), Action::ConsumeOrExpelWindowRight => String::from("Consume or Expel Window Right"), + Action::ToggleWindowFloating => String::from("Move Window Between Floating and Tiling"), + Action::SwitchFocusBetweenFloatingAndTiling => { + String::from("Switch Focus Between Floating and Tiling") + } Action::Screenshot => String::from("Take a Screenshot"), Action::Spawn(args) => format!( "Spawn {}",