User Tools

Site Tools


ubuntu:mouse:mouse_shortcuts_with_xbindkeys:emulate_key_presses

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:mouse:mouse_shortcuts_with_xbindkeys:emulate_key_presses [2021/10/25 22:17] peterubuntu:mouse:mouse_shortcuts_with_xbindkeys:emulate_key_presses [2021/10/26 08:51] (current) – [Enhanced Options] peter
Line 2: Line 2:
  
 ===== Emulate CTRL+F8 ===== ===== Emulate CTRL+F8 =====
- 
-Emulate **CTRL+F8** 
- 
-The following command should then activate the effect: 
  
 <code bash> <code bash>
Line 32: Line 28:
   * The second line refers to a mouse button, in this case button 8.   * The second line refers to a mouse button, in this case button 8.
 </WRAP> </WRAP>
 +
 +----
 +
 +===== Enhanced Options =====
 +
 +<file bash $HOME/.xbindkeysrc>
 +# History Back & Forward.
 +"xte 'keydown Alt_L' 'key Left' 'keyup Alt_L' "
 +  b:6 + Release
 +
 +"xte 'keydown Alt_L' 'key Right' 'keyup Alt_L' "
 +  b:7 + Release
 +
 +# Page down.
 +"xte 'key Next' "
 +  b:8
 +
 +# Page up.
 +"xte 'key Prior' "
 +  b:9
 +
 +# Open links in new tab.
 +"xte 'keydown Control_L' 'mouseclick 1' 'keyup Control_L' "
 +</file>
 +
 +<WRAP info>
 +**NOTE:**  A list of __modifiers__ is used here.
 +
 +List of modifier:
 +
 +  * Release, Control, Shift, Mod1 (Alt), Mod2 (NumLock),
 +  * Mod3 (CapsLock), Mod4, Mod5 (Scroll).
 +
 +  * The **release** modifier is used to catch __release__ events instead of __press__ events.
 +
 +  * By default, xbindkeys ignores NumLock, CapsLock and ScrollLock.
 +
 +
 +</WRAP>
 +
 +----
 +
 +====== Restart xbindkeys ======
 +
 +If any changes are made to the config file then xbindkeys needs to be restarted:
 +
 +<code bash>
 +killall xbindkeys
 +xbindkeys
 +</code>
 +
 +----
  
ubuntu/mouse/mouse_shortcuts_with_xbindkeys/emulate_key_presses.1635200261.txt.gz · Last modified: 2021/10/25 22:17 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki