0

Here is the relevant part of my .xbindkeysrc file. The first commented line gives you idea of what I am trying to achieve.

# System-wide equivalence of Shift-Del, Ctrl-Ins, Shift-Ins and Ctrl-X, Ctrl-C, Ctrl-V, respectively

# "xvkbd -xsendevent -text '\Cx'"
"xdotool key 'Control_L+x'"
Shift + Delete + Release

# "xvkbd -xsendevent -text '\Cc'"
"xdotool key 'Control_L+c'"
Control + Insert + Release

# "xvkbd -xsendevent -text '\Cv'"
"xdotool key 'Control_L+v'"
Shift + Insert + Release

At the beginning, I was totally happy with solution based on xvkbd utility (commented lines), until I realised it did not work in Gnome applications.

So I had to switch to xdotools in stead. For some reasons, it is only the second block (corresponding to the copying operation) that is working. I need your advice on what to change in the other two blocks.

S. N.
  • 375

2 Answers2

0

I found the following string to work for me (copying operation as an example):

"xset r off; xdotool key --clearmodifiers 'Control_L+c'; xset r on"
Control + Insert + Release

Based on the accepted answer for this thread.

S. N.
  • 375
0

below was perfect until a day to close firefox tab by side button:

" xdotool key 'control + w' " b:9

it does not run anymore. finally below works:

"xte 'keydown Control_L' 'key w' 'keyup Control_L'" b:9 + Release