Skip to content

Commit

Permalink
Add floating binds to the hotkey overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
YaLTeR committed Jan 3, 2025
1 parent 6998b17 commit b3c6f0e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ui/hotkey_overlay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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 <span face='monospace' bgcolor='#000000'>{}</span>",
Expand Down

0 comments on commit b3c6f0e

Please sign in to comment.