Tiny Core Base > Raspberry Pi

using GUI desktop without mouse

<< < (2/2)

Rich:
Hi bonbonbaron

--- Quote from: bonbonbaron on January 18, 2020, 12:48:03 PM ---...  When I run startx, an ugly mouse pointer sits in the  middle of the screen, ...

Searching for workarounds, I googled around and saw something about using numpad to simulate mouse movements, ...
--- End quote ---
You could try using  xdotool.tcz  to move the mouse cursor to the lower right corner where it should be virtually invisible:

--- Code: ---xdotool mousemove 1024 768
--- End code ---
Replace  1024 768  with your screens resolution, or just set it to something big like  2000 2000  if you don't know your resolution.

You can use the  xdotool  command to emulate a mouse using your keyboard if you can find a program to bind commands to keystrokes.
Examples of mouse commands:

--- Code: ---xdotool mousemove_relative -- 10 0    # Move mouse 10 pixels right.
xdotool mousemove_relative -- -10 0   # Move mouse 10 pixels left.
xdotool mousemove_relative -- 0 10    # Move mouse 10 pixels down.
xdotool mousemove_relative -- 0 -10   # Move mouse 10 pixels up.
xdotool click 1                       # Single click left mouse button
xdotool click --repeat 2 1            # Double click left mouse button
xdotool mousedown 1                   # Press left mouse button
xdotool mouseup 1                     # Release left mouse button
--- End code ---

bonbonbaron:

--- Quote from: Rich on January 20, 2020, 10:32:17 PM ---You can use the  xdotool  command to emulate a mouse using your keyboard if you can find a program to bind commands to keystrokes.
Examples of mouse commands:

--- Code: ---xdotool mousemove_relative -- 10 0    # Move mouse 10 pixels right.
xdotool mousemove_relative -- -10 0   # Move mouse 10 pixels left.
xdotool mousemove_relative -- 0 10    # Move mouse 10 pixels down.
xdotool mousemove_relative -- 0 -10   # Move mouse 10 pixels up.
xdotool click 1                       # Single click left mouse button
xdotool click --repeat 2 1            # Double click left mouse button
xdotool mousedown 1                   # Press left mouse button
xdotool mouseup 1                     # Release left mouse button
--- End code ---

--- End quote ---
Oh that's awesome, thanks Rich!

Google had me trying xmodmap yesterday, but I think that just maps keyboard keys to other keys and mouse clicks. But if piCore has the bind command (won't know till I get off work), that may let me do things like Shift+ArrowKeys to move the mouse. Hopefully TCL has it, and if it does, I'll try that next.

Side comment: I've learned more about computers in a week on Tiny Core Linux than I did in ten years on my Windows desktop.

Rich:
Hi bonbonbaron
The  xbindkeys  program would allow you to bind commands to keystrokes. Unfortunately, I don't see it listed in the 9.x piCore
repository.

bonbonbaron:

--- Quote from: Rich on January 21, 2020, 10:12:55 AM ---Hi bonbonbaron
The  xbindkeys  program would allow you to bind commands to keystrokes. Unfortunately, I don't see it listed in the 9.x piCore
repository.

--- End quote ---
If bind won't do the trick, then it sounds like I'm SOL.

Rich:
Hi bonbonbaron
Some window managers allow you to map commands to keys (shortcuts). xfce is one of them.

Also  openbox:
http://openbox.org/wiki/Help:Bindings

And  JWM:
https://wiki.archlinux.org/index.php/JWM
http://joewing.net/projects/jwm/config-2.3.html#keys

Navigation

[0] Message Index

[*] Previous page

Go to full version