Using MOUSE on Keyboard on LXDE

Discussion on LXDE releases and Development. This forum is not the best way to contact the developers, please use the Development mailing list and Sourceforge to interact with them.
Locked
adrianoh2
Posts: 1
Joined: Fri Jul 06, 2012 3:37 am

Using MOUSE on Keyboard on LXDE

Post by adrianoh2 »

Hi!

I searched for a solution using a Mouse on Keyboard, as has on Gnome (CTRL+*+NUM LOCK).
The LXDE dont have this option active on rc.xml, but you can do it! :)

This litte tutorial help you to put accessibility on your LXDE :)
Sorry my english! I speak brasilian portuguse!

Do it!

Open your rc.xml. On Linux Mint LXDE version, you will found on: /home/user/.config/openbox <- set for your user only.

Here, i'm configure for use CTRL+ALT+ Numerical PAD for my keyboard. When pressed togheter will be move the pointer.
First, install xwit and xdotool:
sudo apt-get install xwit xdotool


The xwit, will do the move pointer to position. I'm using only 5 pixels, but if you want mroe fast, adjust this for 25. 5 multiples are better to move the mouse.
The xdotool is a tool for action the click, and other if you like, as mouse whell. You can change and put other using the rc.xml markup.
This tool, will make the click and right click and midle click too. I think that this better than Gnome Option!

Important! This not have a big consumption of memory. It's very small to run, without lag.
Will be executed time by time! Best for old computers.


For detect the keys, if you dont know the names, use de xev on console/terminal. Will be detect the keys pressed on system.
If you need to understand the rc.xml markup, consult this: http://wiki.lxde.org/en/LXDE:Questions

In <keyboard> section, insert this lines above on </keyboard>:

Code: Select all

<!-- 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 -->

The options, are use a * key for a more speed. You can do 2 configurations. One for CTRL+ALT+NUmPad and other for CTRL+ALT+SHIFT+NUmPad and put more high speed values to move more fast.

If this help you, comment in the souce:

Code: Select all

<!-- 
      Adriano H. Hedler - LXDE Translation to Portuguese-BR Helper
      Accessibility Option on LXDE
      Brasil - Paraná - Curitiba
      Site: www.templosite.com  
-->
Thanks are welcome :)
sindrella
Posts: 1
Joined: Thu Mar 07, 2013 6:52 am

Re: Using MOUSE on Keyboard on LXDE

Post by sindrella »

can you please guide me that how to Using MOUSE on Keyboard on LXDE
Rex Bouwense
Posts: 1093
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Using MOUSE on Keyboard on LXDE

Post by Rex Bouwense »

If you read the original post you will discover how to do this because he has presented a tutorial. Not sure why you would want to do it but I imagine that there might exist a series of circumstances that could require it.
Rex
Yoymoyroy
Posts: 1
Joined: Thu Aug 21, 2014 7:51 am

Re: Using MOUSE on Keyboard on LXDE

Post by Yoymoyroy »

Yup works fine on my Raspberry :D ,so good work keep it up!
If you using UTF-8 signcode, you have to edit the comments because there were signs which it can not progress with,
like " Paraná" and "seção".
Greedings from Germany.
Locked