Make consume-or-expel binds more prominent

I find myself using them much more than regular consume or expel.
This commit is contained in:
Ivan Molodetskikh
2024-11-11 17:56:35 +03:00
parent 9debb5db23
commit 97fe964e00
2 changed files with 12 additions and 8 deletions
+6 -4
View File
@@ -441,15 +441,17 @@ binds {
// Switches focus between the current and the previous workspace.
// Mod+Tab { focus-workspace-previous; }
// The following binds move the focused window in and out of a column.
// If the window is alone, they will consume it into the nearby column to the side.
// IF the window is already in a column, they will expel it out.
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
// Consume one window from the right into the focused column.
Mod+Comma { consume-window-into-column; }
// Expel one window from the focused column to the right.
Mod+Period { expel-window-from-column; }
// There are also commands that consume or expel a single window to the side.
Mod+BracketLeft { consume-or-expel-window-left; }
Mod+BracketRight { consume-or-expel-window-right; }
Mod+R { switch-preset-column-width; }
Mod+Shift+R { switch-preset-window-height; }
Mod+Ctrl+R { reset-window-height; }
+6 -4
View File
@@ -201,8 +201,8 @@ fn render(
actions.extend(&[
&Action::SwitchPresetColumnWidth,
&Action::MaximizeColumn,
&Action::ConsumeWindowIntoColumn,
&Action::ExpelWindowFromColumn,
&Action::ConsumeOrExpelWindowLeft,
&Action::ConsumeOrExpelWindowRight,
]);
// Screenshot is not as important, can omit if not bound.
@@ -376,8 +376,8 @@ fn action_name(action: &Action) -> String {
Action::MoveWindowToWorkspaceUp => String::from("Move Window to Workspace Up"),
Action::SwitchPresetColumnWidth => String::from("Switch Preset Column Widths"),
Action::MaximizeColumn => String::from("Maximize Column"),
Action::ConsumeWindowIntoColumn => String::from("Consume Window Into Column"),
Action::ExpelWindowFromColumn => String::from("Expel Window From Column"),
Action::ConsumeOrExpelWindowLeft => String::from("Consume or Expel Window Left"),
Action::ConsumeOrExpelWindowRight => String::from("Consume or Expel Window Right"),
Action::Screenshot => String::from("Take a Screenshot"),
Action::Spawn(args) => format!(
"Spawn <span face='monospace' bgcolor='#000000'>{}</span>",
@@ -437,6 +437,8 @@ fn prettify_keysym_name(name: &str) -> String {
"minus" => "-",
"equal" => "=",
"grave" => "`",
"bracketleft" => "[",
"bracketright" => "]",
"Next" => "Page Down",
"Prior" => "Page Up",
"Print" => "PrtSc",