Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update keybindings while Penrose is running #166

Closed
midnightexigent opened this issue Mar 15, 2021 · 2 comments
Closed

Update keybindings while Penrose is running #166

midnightexigent opened this issue Mar 15, 2021 · 2 comments
Assignees
Labels
core Changes to penrose core enhancement New feature or request x11rb Changes to the x11rb backend

Comments

@midnightexigent
Copy link

Is your feature request related to a problem? Please describe

Currently the keymap is read once at init and is used for the entire lifetime of Penrose. For alternative keyboard layouts, this means that setting the keyboard layout in a file like /etc/X11/xorg.conf.d/00-keyboard.conf doesn't work #165

So, any updates to the keymap will not be reflected in the Penrose keybindings

Describe the change / addition you'd like to see made

Listen for changes to the keymap and update the keybindings accordingly

@midnightexigent midnightexigent added the enhancement New feature or request label Mar 15, 2021
@sminez sminez added core Changes to penrose core x11rb Changes to the x11rb backend xcb labels Mar 15, 2021
@midnightexigent
Copy link
Author

Update: I just noticed that when using a display manager (eg. LightDM), the files are executed in the correct order: /etc/X11/xorg.conf.d/00-keyboard.conf is sourced before Penrose runs.

This can be an alternative to the quick and dirty solution in #165 (ie. adding setxkbmap <map> in .xinitrc)

@sminez sminez removed the xcb label Jun 11, 2023
@sminez sminez self-assigned this Jun 11, 2023
@sminez
Copy link
Owner

sminez commented Jun 11, 2023

A long time coming but this should now be implemented as of the commit above. The rewrite to the 0.3 API actually made this pretty much trivial to implement in the end but I missed it at that time. Sorry!

@sminez sminez closed this as completed Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Changes to penrose core enhancement New feature or request x11rb Changes to the x11rb backend
Projects
None yet
Development

No branches or pull requests

2 participants