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

[BUG] libxkbcommon 1.8.0 breaks the use of keybinds with Alt #2095

Closed
2 tasks done
randomcodepanda opened this issue Feb 11, 2025 · 4 comments
Closed
2 tasks done

[BUG] libxkbcommon 1.8.0 breaks the use of keybinds with Alt #2095

randomcodepanda opened this issue Feb 11, 2025 · 4 comments
Labels

Comments

@randomcodepanda
Copy link

randomcodepanda commented Feb 11, 2025

Rofi version (rofi -v)

Version: 1.7.8-dirty

Configuration

https://gist.github.com/randomcodepanda/18d3f3e96991a9fc7ef4c657cb9a88b0

Theme

https://gist.github.com/randomcodepanda/72dee9f3c83a19b4ea343f0d2b6ea409

Timing report

No response

Launch command

rofi -dshow run

Step to reproduce

After upgrading to libxkbcommon 1.8.0 in Arch, i've noticed that any keybinds that use alt stopped working, i have a couple of custom keybinds that i use a lot to go to previous and next entry so i noticed immediately that they stopped working, the default keybind to take a screenshot, which is Alt+S, also doesn't work.

kb-row-up: "Up,Alt+k";
kb-row-down: "Down,Alt+j";

Downgrading both libxkbcommon and libxkbcommon-x11 to version 1.7.0 fixes the issue.

Expected behavior

Expected rofi to recognize the Alt keybindings and perform the action accordingly.

Actual behavior

The commands don't work and if i press Alt+j, it just types a j in the bar instead of moving to the next entry.

Additional information

Arch Linux with Qtile running on xorg/x11.

Using wayland display server protocol

  • No, I don't use the wayland display server protocol

I've checked if the issue exists in the latest stable release

  • Yes, I have checked the problem exists in the latest stable version
@DaveDavenport
Copy link
Collaborator

@randomcoder67
Copy link

Same issue using ksuperkey, I had Alt+F1 bound to kb-cancel, so pressing super would exit rofi, but it no longer works.

changes libxkbcommon: https://github.com/xkbcommon/libxkbcommon/blob/master/NEWS.md

Did they fix it in libxkbcommon?

@DaveDavenport
Copy link
Collaborator

no, I just linked the changelog of the libxkbcommon 1.8.0 release as it it relevant to the issue.

@DaveDavenport
Copy link
Collaborator

It seems that with the new xkbcommon, rofi gets told that not only Alt is pressed, but also the Meta key.

A work-around is, to bind Both Alt+Meta. f.e.

rofi -kb-screenshot 'Alt+Meta+S' -show combi

bruhtus added a commit to bruhtus/dotfiles that referenced this issue Feb 17, 2025
From this issue:
davatorium/rofi#2095

Seems like there's some changes with `xkbcommon` which cause `alt`
keybinding to not working as expected. So remap the `kb-custom` to
`alt-meta` instead of only `alt` and see how it goes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants