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

Alt + Number won't work #215

Closed
iiKovu opened this issue Feb 15, 2025 · 5 comments
Closed

Alt + Number won't work #215

iiKovu opened this issue Feb 15, 2025 · 5 comments

Comments

@iiKovu
Copy link

iiKovu commented Feb 15, 2025

As the title suggests, using "alt + a number" won't insert the emoji on the number selected, as it used to do.
I saw another issue opened, but don't think it's getting to a solution for this specifically.

I'm on Arch and X11.

@fdw
Copy link
Owner

fdw commented Feb 15, 2025

Well, that's not enough information to determine what the problem is, much less if it's a different one than #214.

won't insert the emoji on the number selected

What does happen instead?

as it used to do.

What has changed? A new rofimoji version? Something else?

Which action do you use? Do you use rofimoji as a rofi mode or standalone?

@ascodeasice
Copy link

  • 6.13.2-arch1-1
  • Rofi: 1.7.8-dirty
  • rofimoji 6.5.0
  • libxkcommon 1.8.0-1

My issue was that, running rofimoji, and pressing alt+number would type out the number, instead of copying the corresponding emoji like it used to (I configured the action to be copy)

After some search, I think this is the issue: [BUG] libxkbcommon 1.8.0 breaks the use of keybinds with Alt · Issue #2095 · davatorium/rofi

In short, updating libxkbcommon would make rofi receive both the Alt and Meta key when alt is pressed.

A workaround is to bind 'Alt+Meta+' instead, according to this comment

I might try to write some rofi configuration or find out how to send a PR to rofimoji so it's both compatible with the older and newer version of libxkbcommon.

@ascodeasice
Copy link

ascodeasice commented Feb 15, 2025

Adding these to my ~/.config/rofi/config.rasi fixed this issue for me, it maps alt+meta+number to the original action of alt+number

configuration{
  kb-custom-1: "Alt+Meta+1";
  kb-custom-2: "Alt+Meta+2";
  kb-custom-3: "Alt+Meta+3";
  kb-custom-4: "Alt+Meta+4";
  kb-custom-5: "Alt+Meta+5";
  kb-custom-6: "Alt+Meta+6";
  kb-custom-7: "Alt+Meta+7";
  kb-custom-8: "Alt+Meta+8";
  kb-custom-9: "Alt+Meta+9";
  kb-custom-10: "Alt+Meta+0";
}

@fdw
Copy link
Owner

fdw commented Feb 15, 2025

Awesome, thank you very much for the analysis!

I read the rofi issue so that there will be a fix in the next rofi version.

@iiKovu
Copy link
Author

iiKovu commented Feb 19, 2025

Issue resolved as of Rofi version 1.7.8-2.
For everyone who made changes on key binds adding the "+Meta" option, it'll throw an error now. Just remove those from every key bind and Rofi as well as Rofimoji will work as they did.

Thanks again for the research @ascodeasice.

@iiKovu iiKovu closed this as completed Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants