forge
Explore
Log in

Don't you dare go Hollow

Make consume-or-expel binds more prominent

Browse files at this commit

97fe964e000ddff1f368726149a00de5b7681d50Ivan MolodetskikhParent: 9debb5d
I find myself using them much more than regular consume or expel.
resources/default-config.kdlmodified+6 -4
@@ -441,15 +441,17 @@ binds {
441 // Switches focus between the current and the previous workspace.441 // Switches focus between the current and the previous workspace.
442 // Mod+Tab { focus-workspace-previous; }442 // Mod+Tab { focus-workspace-previous; }
443 443
444+ // The following binds move the focused window in and out of a column.
445+ // If the window is alone, they will consume it into the nearby column to the side.
446+ // IF the window is already in a column, they will expel it out.
447+ Mod+BracketLeft { consume-or-expel-window-left; }
448+ Mod+BracketRight { consume-or-expel-window-right; }
449+
444 // Consume one window from the right into the focused column.450 // Consume one window from the right into the focused column.
445 Mod+Comma { consume-window-into-column; }451 Mod+Comma { consume-window-into-column; }
446 // Expel one window from the focused column to the right.452 // Expel one window from the focused column to the right.
447 Mod+Period { expel-window-from-column; }453 Mod+Period { expel-window-from-column; }
448 454
449- // There are also commands that consume or expel a single window to the side.
450- Mod+BracketLeft { consume-or-expel-window-left; }
451- Mod+BracketRight { consume-or-expel-window-right; }
452-
453 Mod+R { switch-preset-column-width; }455 Mod+R { switch-preset-column-width; }
454 Mod+Shift+R { switch-preset-window-height; }456 Mod+Shift+R { switch-preset-window-height; }
455 Mod+Ctrl+R { reset-window-height; }457 Mod+Ctrl+R { reset-window-height; }
src/ui/hotkey_overlay.rsmodified+6 -4
@@ -201,8 +201,8 @@ fn render(
201 actions.extend(&[201 actions.extend(&[
202 &Action::SwitchPresetColumnWidth,202 &Action::SwitchPresetColumnWidth,
203 &Action::MaximizeColumn,203 &Action::MaximizeColumn,
204- &Action::ConsumeWindowIntoColumn,204+ &Action::ConsumeOrExpelWindowLeft,
205- &Action::ExpelWindowFromColumn,205+ &Action::ConsumeOrExpelWindowRight,
206 ]);206 ]);
207 207
208 // Screenshot is not as important, can omit if not bound.208 // Screenshot is not as important, can omit if not bound.
@@ -376,8 +376,8 @@ fn action_name(action: &Action) -> String {
376 Action::MoveWindowToWorkspaceUp => String::from("Move Window to Workspace Up"),376 Action::MoveWindowToWorkspaceUp => String::from("Move Window to Workspace Up"),
377 Action::SwitchPresetColumnWidth => String::from("Switch Preset Column Widths"),377 Action::SwitchPresetColumnWidth => String::from("Switch Preset Column Widths"),
378 Action::MaximizeColumn => String::from("Maximize Column"),378 Action::MaximizeColumn => String::from("Maximize Column"),
379- Action::ConsumeWindowIntoColumn => String::from("Consume Window Into Column"),379+ Action::ConsumeOrExpelWindowLeft => String::from("Consume or Expel Window Left"),
380- Action::ExpelWindowFromColumn => String::from("Expel Window From Column"),380+ Action::ConsumeOrExpelWindowRight => String::from("Consume or Expel Window Right"),
381 Action::Screenshot => String::from("Take a Screenshot"),381 Action::Screenshot => String::from("Take a Screenshot"),
382 Action::Spawn(args) => format!(382 Action::Spawn(args) => format!(
383 "Spawn <span face='monospace' bgcolor='#000000'>{}</span>",383 "Spawn <span face='monospace' bgcolor='#000000'>{}</span>",
@@ -437,6 +437,8 @@ fn prettify_keysym_name(name: &str) -> String {
437 "minus" => "-",437 "minus" => "-",
438 "equal" => "=",438 "equal" => "=",
439 "grave" => "`",439 "grave" => "`",
440+ "bracketleft" => "[",
441+ "bracketright" => "]",
440 "Next" => "Page Down",442 "Next" => "Page Down",
441 "Prior" => "Page Up",443 "Prior" => "Page Up",
442 "Print" => "PrtSc",444 "Print" => "PrtSc",