avahe-kellenberger / nimdow

A window manager written in Nim (In Development)
GNU General Public License v2.0
317 stars 19 forks source link

Hotkeys unexpectedly change after config reload #212

Open Dou2ble opened 1 year ago

Dou2ble commented 1 year ago

Describe the bug When nimdow is first launched hotkeys follow the qwerty layout but after a config reload they start to follow colemak. I have set "setxkbmap -layout us -variant colemak" as a autostart command at the top of the config.

To Reproduce Steps to reproduce the behavior:

  1. add "setxkbmap -layout us -variant colemak"
  2. launch nimdow
  3. hotkeys follow qwerty
  4. reload the config
  5. hotkeys follow colemak

Expected behavior Hotkeys always follow the selected layout (in my case colemak)

Dou2ble commented 1 year ago

a fix i found is to set the keyboard layout before launching nimdow but i still think this is a bug that should be looked into

avahe-kellenberger commented 1 year ago

I suppose we could run all the autostart commands before the rest of the config is loaded. That would fix this issue, but I'm unsure if there would be other consequences. It would probably be fine, I'll think about it for a bit and look into it soon.

Thanks for bringing this up!