Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-03-11 12:31:04

pavloskiv
Member
Registered: 2019-12-19
Posts: 27

Set a keyboard key behaviour with xmodmap .

Maybe it's a stupid question, but let's go: Is there a way to set a key (any) to behave as Backspace key BUT in opposite way ?? I mean Forwardspace . thanks, vladi

Offline

#2 2020-03-14 14:27:50

jakfish
Member
Registered: 2019-12-23
Posts: 55

Re: Set a keyboard key behaviour with xmodmap .

Try this. I'm assuming that your backspace keycode is 22. At any rate, below sets my backspace as a forward space on a Surface Pro6 running Linux Mint 19.3 XFCE:

xmodmap -e "keycode 22 = space"

Offline

#3 2020-03-14 16:37:27

pavloskiv
Member
Registered: 2019-12-19
Posts: 27

Re: Set a keyboard key behaviour with xmodmap .

@jakfish thanks, but almost there : the backspace key goes back and delete the strings, your command works but not delete it.

Offline

#4 2020-03-15 02:10:11

jakfish
Member
Registered: 2019-12-23
Posts: 55

Re: Set a keyboard key behaviour with xmodmap .

I don't believe there's an xmodmap command that can do two things with one key press. That kind of procedure would entail a script.

I suppose you take the command I showed and put in a second event to make the shift-backspace  become a delete, then simple backspace press would be your forward press.

But you already have with a delete key and spacebar.

You have an intriguing idea, and I looked into it, but couldn't find any proof that it could be done.

Offline

#5 2020-03-16 16:30:21

pavloskiv
Member
Registered: 2019-12-19
Posts: 27

Re: Set a keyboard key behaviour with xmodmap .

@jakfish thanks for your reply, I asked that due to my curiosity, you don't need to waste time on that. thanks. vladi

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 522.53 KiB (Peak: 529.66 KiB) ]