You are not logged in.

#1 2013-01-14 00:01:47

akh
Member
From: Copenhagen, Denmark
Registered: 2012-09-24
Posts: 25

[SOLVED] Temporarely disable mouse / touchpad and hide cursor

Is there a way to temporarely disable the mouse, and or touchpad, and hide the cursor?

I would like to be able to control this feature with a keybinding in my window manager (xmonad), so it shouldn't require any interruption of the current working environment.

Thanks

Last edited by akh (2013-01-16 10:56:49)

Offline

#2 2013-01-14 00:16:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: [SOLVED] Temporarely disable mouse / touchpad and hide cursor

synclient can disable the touchpad.  And many tools will hide the cursor (my own "Iocane" project for example).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-01-15 23:49:46

akh
Member
From: Copenhagen, Denmark
Registered: 2012-09-24
Posts: 25

Re: [SOLVED] Temporarely disable mouse / touchpad and hide cursor

Thank you, I'am able to disable the touchpad using:

synclient TouchpadOff=1

I thought that there was an easier way to hide the cursor, eg. without other programs, and I'm unsure of how your Iocane project functions, though I'm not interested in simulating my mouse with my keyboard.

Offline

#4 2013-01-16 00:02:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: [SOLVED] Temporarely disable mouse / touchpad and hide cursor

Iocane, banish, xdotool and a number of similar programs allow you to "script" mouse movements which is eseentially what you want to do to move the mouse off screen.

I don't know what you mean by being able to do it without "other" programs.  What programs do you already have that you think might do it?  Some WMs/DEs have this built in.  I know ratpoison and i3 have such options.  But there must be *some* program to do it.  You could also use xsetroot to set a blank cursor bitmap (that you'd have to create), but not all clients use the root window cursor.

Last edited by Trilby (2013-01-16 00:04:37)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2013-01-16 10:56:15

akh
Member
From: Copenhagen, Denmark
Registered: 2012-09-24
Posts: 25

Re: [SOLVED] Temporarely disable mouse / touchpad and hide cursor

Trilby wrote:

Iocane, banish, xdotool and a number of similar programs allow you to "script" mouse movements which is eseentially what you want to do to move the mouse off screen.

Okay, I didn't think about it that way. Well, that will do the job.

Trilby wrote:

I don't know what you mean by being able to do it without "other" programs.  What programs do you already have that you think might do it?

I was thinking that the cursor was a feature of X that could be manipulated through X, and if so, that would have been more simple.
Anyway, this seems to be solved now. Thank you!

Offline

#6 2013-01-16 11:58:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,554
Website

Re: [SOLVED] Temporarely disable mouse / touchpad and hide cursor

akh wrote:

I was thinking that the cursor was a feature of X that could be manipulated through X, and if so, that would have been more simple.

Yep, it is.  But Xorg uses a client server design.  The Xorg server does not offer direct interface, you need client programs to send messages to it.  Each of the example programs I listed are X11 clients that communicate with the server and provide the user ways manipulate what X is doing.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB