You are not logged in.
Pages: 1
I'm having a problem changing the shift-insert key combo to another set of keys.
I installed and ran xev, and found the following for shift-insert:
KeyPress event, serial 36, synthetic NO, window 0x1e00001,
root 0x57e, subw 0x0, time 92649803, (-1,53), root:(498,77),
state 0x1, keycode 118 (keysym 0xff63, Insert), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: FalseSays that the insert key is keycode 118. When I enter my Xmodmap file and go to keycode 118, it lists the following:
keycode 118 = Insert NoSymbol InsertMy understanding of Xmodmap layout is:
Each keysym column in the table corresponds to a particular combination of modifier keys:
1. Key
2. Shift+Key
3. Mode_switch+Key
4. Mode_switch+Shift+Key
5. ISO_Level3_Shift+Key
6. ISO_Level3_Shift+Shift+KeyThat means the second symbol is the shift-insert combo. How can it be listed as NoSymbol?!? How can I change the location of shift-insert?
I need to do this because with my current, needed, setup I would have to use the keycombo Fn-shift-insert, and it's just bloody awkward.
Offline
OK, can someone possibly clue me in to where shift-insert would be applied?
Offline
What do you mean by "applied"? Many programs respond to shift+insert by pasting the primary selection. But this is done by each individual program.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
What do you mean by "applied"? Many programs respond to shift+insert by pasting the primary selection. But this is done by each individual program.
So you're saying I can't change this?
Offline
I'm saying I don't know what you are referring to yet - so I certainly can't tell you whether you can change it, let alone how. Is Xmodmap actually relevant here, or was that just something you thought would help achieve your goal (i.e., and X-Y problem)?
Please describe your actual goal and how the current behavior of the system differs from that goal.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Ignore the shift part, you want to remap the insert key (which I assume you need to press Fn in order to reach), the shift part is encoded in the state (0x1) and the clients will look at that.
The insert key generates Insert on all layers and that (along the modifier) is what the clients respond to.
Online
Ignore the shift part, you want to remap the insert key (which I assume you need to press Fn in order to reach), the shift part is encoded in the state (0x1) and the clients will look at that.
The insert key generates Insert on all layers and that (along the modifier) is what the clients respond to.
Ahh, I see. So instead of going lower, I need to go higher. Hence the NoSymbol on the lower levels and the comment:
But this is done by each individual program.
So I should be doing this at the WM level. I'll give that a try.
Offline
So I should be doing this at the WM level.
No. The WM has absolutely nothing to do with that.
Figure the keycode of the key you want to use as Insert and map Insert there.
Online
So I should be doing this at the WM level.
No. The WM has absolutely nothing to do with that.
Figure the keycode of the key you want to use as Insert and map Insert there.
Ok, then you've lost me.
The key I want to move is shift-insert. The keymap of Xmodmap says the insert key code is 118. And the second entry of key code 118:
Each keysym column in the table corresponds to a particular combination of modifier keys:
2. Shift+Keykeycode 118 = Insert [b]NoSymbol[b] InsertBut the second column is NoSymbol. I can't remap NoSymbol and have it mean the same thing.
Moving it did nothing.
Offline
118 is the keycode of the regular insert key, but afaiu you've to use the Fn key to use it?
Which keycode do you *instead* want to use as Insert?
Run
xev -event keyboardpress the key you desire to use as Insert and post the output.
Online
I feel the mention of the Fn key is confusing you.
Fn is not used, and this post was so that I never have to use Fn. But I am making my F-keys the default. Which means to use shift-insert, I would need to include the Fn key. So I am moving my shift-insert to super_L-v, hopefully.
Here is my output for the new key:
KeyPress event, serial 28, synthetic NO, window 0x1e00001,
root 0x57e, subw 0x0, time 1803168, (28,108), root:(767,132),
state 0x40, keycode 55 (keysym 0x76, v), same_screen YES,
XLookupString gives 1 bytes: (76) "v"
XmbLookupString gives 1 bytes: (76) "v"
XFilterEvent returns: FalseMy original thought was to move the symbol for shift-insert to super_L-v but I can't move 'NoSymbol' and have it mean something.
Offline
So I am moving my shift-insert to super_L-v, hopefully.
No. At least not this way.
You could bind super+v to an xdotool shortcut the fires "xdotool key Shift+Insert", but xmodmap or xkb won't get you this at all. They manipulate the keymap (so you could make your caps lock act as Insert) but not the client response to a shortcut.
Online
Pages: 1