3

If so, how? I'm using Raspbian Stretch. I looked in the Openbox config manager and keyboard and mouse configuration. I would like to move the pointer without a mouse using the arrow keys.

5

This command lets you control the mouse with the numpad, so not exactly what you asked for, but with this you do not need to install anything or edit any files:

setxkbmap -option keypad:pointerkeys 

Press CTRL + SHIFT + NUMLOCK to activate.

From: http://en.linuxreviews.org/HOWTO_use_the_numeric_keyboard_keys_as_mouse_in_XOrg

2

I Don't really know whats your intent if you want to start a program or something you can use key shortcuts

  • [Ctrl] [Esc] - Will bring up the start menu where you can select and
  • [Alt] [F2] - Will start a run command box.
  • [ESC] to exit
  • [Alt] [F4] -Terminate running application(s) beginning with most recent.
  • [Ctrl] [Alt] [Delete] - Bring up task manager

Or you can use the xwit library

 sudo apt-get install xwit xdotool

Now Ctrl+Alt+Keypad buttons moves the cursor.

Or you can use this script by editing this file

~/.config/openbox/lxde-rc.xml

and placing the following into the <keyboard> tag:

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

  <!-- CONROLE DO MOUSE COMUM -->

For the changes to take effect, run

openbox --reconfigure

I hope that's helpful

  • Ah thanks. I will use the keyboard shortcuts. Have a nice day! – Sjors123 Feb 24 '18 at 10:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.