How to make the root mouse pointer hidden? [SOLVED]
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
How to make the root mouse pointer hidden? [SOLVED]
Hello,
All is in the title: does any command exist to hide the pointer of the mouse during a special process and to show it again when finished?
Thank you.
Cordilalement.
All is in the title: does any command exist to hide the pointer of the mouse during a special process and to show it again when finished?
Thank you.
Cordilalement.
Last edited by Argolance on Wed 08 Aug 2012, 08:39, edited 2 times in total.
Re: How to make the mouse pointer hidden?
Two possibilities:Argolance wrote:Hello,
All is in the title: does any command exist to hide the pointer of the mouse during a special process and to show it again when finished?
Thank you.
Cordilalement.
Unclutter (already in many pups) [url]file:///usr/share/doc/unclutter.htm[/url]
Xdotool http://www.semicomplete.com/projects/xd ... e_commands
Pet in this thread: http://www.murga-linux.com/puppy/viewtopic.php?t=79263
Regards ETP
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]
[url=http://tinyurl.com/pxzq8o9][img]https://s17.postimg.cc/tl19y14y7/You_Tube_signature80px.png[/img][/url]
[url=http://tinyurl.com/kennels2/]Kennels[/url]
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
Thank you!
Looking inside /root/.xinitrc, I already noticed that it was possible to hide the pointer when not moving using "unclutter":
Cordialement.
Thank you!
Looking inside /root/.xinitrc, I already noticed that it was possible to hide the pointer when not moving using "unclutter":
But this is not exactly what I need: At startup, I would like the pointer to be hidden while a welcome screen is displayed, then shown only when the desktop appears...#v2.01 hide cursor when not moving... (setup in /usr/sbin/input-wizard)
if [ -f /etc/mousehide ];then
IDLETIME="`cat /etc/mousehide | cut -f 1 -d ','`"
[ ! "$IDLETIME" = "0" ] && unclutter -idle $IDLETIME &
fi
Cordialement.
OK, after a bit of research on my Puppy4.3.1 running jwm:
The big X we see on a black background whilst the window manager (jwm) is loading, which is what I assume
you don't want is actually being generated by the X_server and is
displayed until a Windows Manager takes over which then displays
the background, task bar, default mouse cursor and so on.
In my case the Windows Manager is JWM.
To see what I mean, log out of X then once on the CLI type:
then type:
What you will see is a black screen (or a funny cross-hatch pattern)
depending on your screen resolution and the big X cursor.
It will stay like that waiting for a Windows Manager to start
which of course it never will.
To "exit" press
then
followed by
to return to normal.
So unless someone can think of something else, I don't see how this can
be overcome.
The big X we see on a black background whilst the window manager (jwm) is loading, which is what I assume
you don't want is actually being generated by the X_server and is
displayed until a Windows Manager takes over which then displays
the background, task bar, default mouse cursor and so on.
In my case the Windows Manager is JWM.
To see what I mean, log out of X then once on the CLI type:
Code: Select all
cd /usr/X11R7/bin
Code: Select all
Xorg
depending on your screen resolution and the big X cursor.
It will stay like that waiting for a Windows Manager to start
which of course it never will.
To "exit" press
Code: Select all
CONTROL+ALT+F1
Code: Select all
CONTROL+C
Code: Select all
xwin
So unless someone can think of something else, I don't see how this can
be overcome.
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
Actually I have shown that you can boot to X with jwm in ~1s. It would be useful to change the mouse cursor to a blank while the "console" stuff loads in rxvt. Though mine is an extreme example, it is common for a whole set of apps to load after the wm is up. Iirc xcb had an example that changes the cursor, but it used the numeric reference to the glyph... makes the example hard to find even when you have found it. It toggled between a hand pointing and an arrow cursor, so you may just need to replace it with a blank glyph(and eliminate the other example code)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
Thank you.
@technosaurus
@Dave_G
This is my boot process:
Cordialement.
Thank you.
@technosaurus
Sorry but may I please have a bit more? (Where did you show this?)Actually I have shown
"in ~1s" ???that you can boot to X with jwm in ~1s
@Dave_G
I did it... and I think this is what I mean too!To see what I mean, log out of X then once on the CLI type:
This is my boot process:
- - First Xlock is displayed (no cursor) to protect the session (with a password)
- then a welcome screen is displayed (I get a cursor)
- then jwm is launched (the cursor above is changed to an other one that is customizable by the user).
Cordialement.
What Puppy are you using?Argolance wrote: - then a welcome screen is displayed (I get a cursor)
With my 4.3.1, it goes from black screen with the X cursor straight
to the desktop once JWM is loaded.
My Puppy does not have a welcome screen, or perhaps I haven't set one.Argolance wrote: I just would like the cursor shown during the welcome screen to be hidden.
Hi Argolance
Ok, why not have a look to see exactly what is generating the welcome screen?
Is it a picture or a combination of picture and text?
If it's part of the Windows Manager, perhaps there are scripting options
in a file to manipulate the welcome screen.
Failing that, depending on the sequence of events, you could try and
make a new "empty" mouse cursor, there are tools available such as
xcursorgen
You could also have a look at Pcursor although I'm not sure if it's compatible
with your Puppy Version.
I will look further as time permits.
Ok, why not have a look to see exactly what is generating the welcome screen?
Is it a picture or a combination of picture and text?
If it's part of the Windows Manager, perhaps there are scripting options
in a file to manipulate the welcome screen.
Failing that, depending on the sequence of events, you could try and
make a new "empty" mouse cursor, there are tools available such as
xcursorgen
You could also have a look at Pcursor although I'm not sure if it's compatible
with your Puppy Version.
I will look further as time permits.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello Dave_G,
I will try to have a look for xcursorgen and Pcursor...
Thank you!
Cordialement.
Is it just a gtkdialog script that shows a combination of pictures and texts and that is launched before jwm. Screen and window (without borders) backgrounds are both of the same color...Is it a picture or a combination of picture and text?
I will try to have a look for xcursorgen and Pcursor...
Thank you!
Cordialement.
Hi Argolance
If it's just a gtkdialog script showing picture/s and text, then why don't you
use the pgm called unclutter which hides the mouse cursor after a certain
time of inactivity which you can make very short with the -idle switch
Just remember to load unclutter before the welcome screen and to kill it
after or it will keep on hiding your mouse cursor.
To kill unclutter, I think this will suffice:
Hope this helps.
If it's just a gtkdialog script showing picture/s and text, then why don't you
use the pgm called unclutter which hides the mouse cursor after a certain
time of inactivity which you can make very short with the -idle switch
Just remember to load unclutter before the welcome screen and to kill it
after or it will keep on hiding your mouse cursor.
To kill unclutter, I think this will suffice:
Code: Select all
ThePID=`pidof unclutter`
kill -9 $ThePID
- technosaurus
- Posts: 4853
- Joined: Mon 19 May 2008, 01:24
- Location: Blue Springs, MO
- Contact:
it was just a proof of concept, but:http://murga-linux.com/puppy/viewtopic. ... 822#590822Argolance wrote:Hello,
Thank you.
@technosaurusSorry but may I please have a bit more? (Where did you show this?)Actually I have shown"in ~1s" ???that you can boot to X with jwm in ~1s
Cordialement.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
@Dave_G
But I found something interesting:
Using xsetroot:
Examples:
I didn't have a look to the possibilities given by the "cursor <cursor file> <mask file>" option yet (lets user change the pointer cursor to whatever he wants when the pointer cursor is outside of any window. Cursor and mask files are bitmaps - little pictures - and can be made with any bitmap program. He probably wants the mask file to be all black until he gets used to the way masks work). I will soon have a look though this seems a bit strange: cursor file? mask file?
@technosaurus
Thank you for answering!
Damn hard for me!
Cordialement!
@Dave_G
I already tried this, following ETP post (above) but did not get what I am expecting for.if it's just a gtkdialog script showing picture/s and text, then why don't you
use the pgm called unclutter which hides the mouse cursor after a certain
time of inactivity which you can make very short with the -idle switch
But I found something interesting:
Using xsetroot:
... and following this (cursor_name <cursor-font name> option that lets user change the pointer cursor to one of the standard cursors from the cursor font):# xsetroot -v
usage: xsetroot [options]
where options are:
-display <display> or -d <display>
-fg <color> or -foreground <color>
-bg <color> or -background <color>
-rv or -reverse
-help
-def or -default
-name <string>
-cursor <cursor file> <mask file>
-cursor_name <cursor-font name>
-xcf <ARGB cursor file> <cursor size>
-solid <color>
-gray or -grey
-bitmap <filename>
-mod <x> <y>
Examples:
xsetroot -cursor_name question_arrow
I can at least change the cursor (top left arrow) to another one.xsetroot -cursor_name watch
I didn't have a look to the possibilities given by the "cursor <cursor file> <mask file>" option yet (lets user change the pointer cursor to whatever he wants when the pointer cursor is outside of any window. Cursor and mask files are bitmaps - little pictures - and can be made with any bitmap program. He probably wants the mask file to be all black until he gets used to the way masks work). I will soon have a look though this seems a bit strange: cursor file? mask file?
@technosaurus
Thank you for answering!
Damn hard for me!
Cordialement!
Argolance,
You can do this with xsetroot to blank the pointer-
Make a file named none.xbm
then
Cheers,
s
You can do this with xsetroot to blank the pointer-
Make a file named none.xbm
Code: Select all
#define none_width 1
#define none_height 1
#define none_x_hot 0
#define none_y_hot 0
static unsigned char none_bits[] = {
0x00
};
Code: Select all
xsetroot -cursor none.xbm none.xbm
s
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello Dave_G,
Thank you!
Cordialement.
It is not a problem for my case because I use this configuration only at start up of the system. Later, as jwm is launched, the mouse cursor is the one which is defined by default or the user defined himself.By the way, keep in mind that some apps use their own mouse cursors
Thank you!
Cordialement.