-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
xmodmap with inputs #4250
Comments
You'll have to use a custom layout. Save the following to
Then in your sway config, you can use |
Thank you SO much! Works as expected |
@RedSoxFan Have a similar issue but it's not clear how to convert a set of xmodmap commands to a layout file. Could you provide some brief guidance or link to a guide on how to create these layout files? edit: I was able to solve my issue (making the "PrtSc" key map to Win) by using:
In general you want to stay away from writing custom xkb files unless absolutely necessary. Take a look at |
Maybe put a link to some documentation on this in wiki and/or FAQ |
key <AD03> { [ e, E, EuroSign, cent ] };
key <AD07> { [ u, U, udiaeresis, Udiaeresis ] }; @RedSoxFan Could you let me know how to remap the 'r' key to get the ₹ (Indian Rupee) symbol in a similar fashion? Or point me to the right resource? Thanks. |
@paramjit1 As for the key portion, the graphic at https://www.charvolant.org/doug/xkb/html/img3.png appears to be a good resource for that. |
@RedSoxFan I tried to implement what you have suggested in order to remap AltGr+ In my sway config I have this relevant snippet:
And this is my xkb file under
This doesn't seem to be doing anything. AltGr+ including the rest of the example code:
also does nothing. |
It worked with:
in the sway config, and with:
in |
I am trying to recreate a mapping (that was previously done through
|
After searching around some more and quite a bit of trial and error I have figured out that |
I really wish xkb was a little more intuitive to configure. and didn't require duplicating entire layouts, keymaps, etc. to make those sort of changes. |
@tmccombs: I too think it could be easier. But you don't have to duplicate entire layouts. For example, I wanted to remap the Alt Gr key, the one on the right side of the space bar, to the super key (aka Windows key). I use the super key as my Sway modifier ( Here's what I did: Relevant bit of
The entirety of
I think those efforts are reasonable. Here's a more involved example, remapping all kinds of keys: Changing Keyboard Layouts with XKB I'm not sure why I had to add both With |
I have this ridiculous issue on linux where I can use xmodmap to disable the numeric keypad dot key, which for some reason gets fired off if i type hu (as in github) like githu.........b, as well as when I open new windows in chrome. Incredibly annoying, especially considering I don't even have a numeric keypad -- and apparently super+2 doesn't work to switch to a new workspace either so I remapped caps to super. Big thanks to @mb720 for happening to come up with a nicely working solution on the same day I needed one! In my ~/.config/sway/config:
In ~/.xkb/symbols/keybounce_fix:
|
Haha I spoke too soon. This fix doesn't seem to persist across suspend-resume at all. do i have to resort to some hack outside of sway to fix this (I have something in mind already), or is there something in-WM to deal with that? |
Not exactly the same issue, but how do I map a key sequence like |
@j0hnmeow I found this for my keybounce fix under X back when I was still using that as my daily driver:
by running xev and seeing what came up... I don't really remember how I translated 129 to
you want something else in the brackets there for your remapping needs. |
Hi @RedSoxFan, I am trying to do exactly what you do in your example here: #4250 (comment) but with the "Super_L" key instead of Alt. Could you give me a pointer on how to do this? Thank you very much! |
Just to point out, since it wasn't clear to me until I found xkbcommon/libxkbcommon#117, but #4250 (comment) can be put in Also So for example, I now have in
and in
|
Thanks this works really great. But one thing, as soon I enable this layout my CAPS key stops working. |
@RedSoxFan I don't have that file locally, and the |
I was using a script in i3 to set my us key layout to use German "umlaut" (ä, ö, ü and ß).
Is it possible to do this with
inputs
?The text was updated successfully, but these errors were encountered: