glzr-io / glazewm

GlazeWM is a tiling window manager for Windows inspired by i3 and Polybar.
GNU General Public License v3.0
4.02k stars 123 forks source link

[bug/question] keybinds conflict with Windows Terminal #588

Open k4lizen opened 2 months ago

k4lizen commented 2 months ago

Namely, the Windows Terminal uses alt+arrows to switch between panes, and glazewm uses alt+arrows to switch between windows. Is there an intended/recommended resolution for this keybind conflict?

catvox commented 2 months ago

i think you can us windows powertoys to change keybind. it is usefull!

Bublade commented 2 months ago

I've remvoed the arrow keys from the bindings and use the hjkl bindings instead You can change the following section https://github.com/glzr-io/GlazeWM/blob/main/GlazeWM.App/Resources/sample-config.yaml#L127-L136 Into

keybindings:
  # Shift focus in a given direction.
  - command: "focus left"
    bindings: ["Alt+H"]
  - command: "focus right"
    bindings: ["Alt+L"]
  - command: "focus up"
    bindings: ["Alt+K"]
  - command: "focus down"
    bindings: ["Alt+J"]

If you are windows powertoys there will be more conflicts alt+space (focus floating/tiling mode VS powertoys run) I've changed that into alt+z And for sementics i changed alt+shift+space (toggle floating/tiling mode) into alt+shift+z

k4lizen commented 2 months ago

Thanks for the answer! It does seem like a relatively good compromise, though one which doesn't work for me as hlkj is very unintuitive on colemak-dh

Bublade commented 2 months ago

You can ofcourse rebind those commands to your liking (except for the arrow keys :) ). If you rarely use multiple panes in WT you can also rebind the move focus pane commands in WT.