User Tools

Site Tools


Writing /var/lib/dokuwiki/data/meta/tutorials/tutorial_for_using_mouse_on_keyboard_on_lxde.meta failed
tutorials:tutorial_for_using_mouse_on_keyboard_on_lxde

This is an old revision of the document!


Using mouse on keyboard LXDE

  • Install xwit and xdotool
sudo apt-get install xwit xdotool

Open your rc.xml, go to /home/user/.config/openbox

Now yo can edit the code, in <keyboard> section, insert the code showed below on </keyboard>

<!-- Controlando o MOUSE via LXDE com XWIT -->
<!-- Keybinding for MOUSE CONTROL RIGHT DOWN-->
<keybind key="C-A-KP_3">
 <action name="Execute">
       <command>xwit -root -rwarp 5 5</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL RIGHT UP-->
<keybind key="C-A-KP_9">
 <action name="Execute">
       <command>xwit -root -rwarp 5 -5</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL LEFT DOWN-->
<keybind key="C-A-KP_1">
 <action name="Execute">
       <command>xwit -root -rwarp -5 5</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL LEFT UP-->
<keybind key="C-A-KP_7">
 <action name="Execute">
       <command>xwit -root -rwarp -5 -5</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL LEFT-->
<keybind key="C-A-KP_4">
 <action name="Execute">
       <command>xwit -root -rwarp -5 0</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL RIGHT-->
<keybind key="C-A-KP_6">
 <action name="Execute">
       <command>xwit -root -rwarp 5 0</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL UP-->
<keybind key="C-A-KP_8">
 <action name="Execute">
       <command>xwit -root -rwarp 0 -5</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL DOWN-->    
<keybind key="C-A-KP_2">
 <action name="Execute">
          <command>xwit -root -rwarp 0 5</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL DOWN FAST-->    
<keybind key="S-C-A-KP_2">
 <action name="Execute">
          <command>xwit -root -rwarp 0 25</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL RIGHT CLICK-->
<keybind key="C-A-KP_0">
 <action name="Execute">
       <command>xdotool click 3</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL MIDLE CLICK-->
<keybind key="C-A-KP_Decimal">
 <action name="Execute">
       <command>xdotool click 2</command>
 </action>
</keybind>
<!-- Keybinding for MOUSE CONTROL LEFT CLICK-->
<keybind key="C-A-KP_Enter">
 <action name="Execute">
       <command>xdotool click 1</command>
 </action>
</keybind>
<!-- Fim seção CONROLE DO MOUSE COMUM -->

NOTES

To modify your mouse speed just modify your code; instead of 5 put any multiple of 5.

If it is not working, try erasing the brazilian words from the code.

Now you can control your mouse using your NumPad: Crt+alt+NumPad to move:

Crt+alt+8 → Move up

Crt+alt+2 → Move down

Crt+alt+6 → Move right

Crt+alt+4 → Move left

Crt+alt+9 → Move up right

Crt+alt+7 → Move up left

Crt+alt+3 → Move down right

Crt+alt+1 → Move down left

Crt+alt+Enter → left click

Crt+alt+0 → right click

References

tutorials/tutorial_for_using_mouse_on_keyboard_on_lxde.1456509162.txt.gz · Last modified: 2022/09/20 00:08 (external edit)