| Author |
Message |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Fri 03 Aug 2012, 12:48 Post subject:
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.
_________________

Last edited by Argolance on Wed 08 Aug 2012, 04:39; edited 2 times in total
|
|
Back to top
|
|
 |
ETP

Joined: 19 Oct 2010 Posts: 310 Location: UK
|
Posted: Fri 03 Aug 2012, 14:35 Post subject:
Re: How to make the mouse pointer hidden? |
|
| 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. |
Two possibilities:
Unclutter (already in many pups) file:///usr/share/doc/unclutter.htm
Xdotool http://www.semicomplete.com/projects/xdotool/xdotool.xhtml#mouse_commands
Pet in this thread: http://www.murga-linux.com/puppy/viewtopic.php?t=79263
_________________ Regards ETP
Currently running Slacko 5.3.3 k-3.1.10
(demo with audio--play flash full screen & press F11)
http://megaswf.com/s/2484946 1080p version Oct 2012
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Sat 04 Aug 2012, 06:47 Post subject:
|
|
Hello,
Thank you!
Looking inside /root/.xinitrc, I already noticed that it was possible to hide the pointer when not moving using "unclutter": | Quote: | #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 |
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...
Cordialement.
_________________

|
|
Back to top
|
|
 |
Dave_G

Joined: 21 Jul 2011 Posts: 459
|
Posted: Sat 04 Aug 2012, 11:59 Post subject:
|
|
Hi
A very interesting question.
Are you referring to the X mouse cursor while Xwin is starting up or
the actual arrow once it's completely loaded?
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Sat 04 Aug 2012, 12:10 Post subject:
|
|
Hello
I think I am... | Quote: | | ... referring to the X mouse cursor while Xwin is starting up |
I guess I am not sure at all and don't really see what you mean: | Quote: | | the actual arrow once it's completely loaded |
Cordialement.
_________________

|
|
Back to top
|
|
 |
Dave_G

Joined: 21 Jul 2011 Posts: 459
|
Posted: Sat 04 Aug 2012, 12:16 Post subject:
|
|
I've never had reason not to show it but now that you mention it,
it's an interesting exercise which I will try.
Will experiment a bit later on and report back.
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Sat 04 Aug 2012, 12:17 Post subject:
|
|
OK! thank you...
|
|
Back to top
|
|
 |
Dave_G

Joined: 21 Jul 2011 Posts: 459
|
Posted: Sat 04 Aug 2012, 13:42 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 3843
|
Posted: Sun 05 Aug 2012, 01:20 Post subject:
|
|
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)
_________________ Puppy Web Desktop Now with pet packages - Pet Packaging 100 & 101
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Sun 05 Aug 2012, 07:22 Post subject:
|
|
Hello,
Thank you.
@technosaurus | Quote: | | Actually I have shown | Sorry but may I please have a bit more? (Where did you show this?) | Quote: | | that you can boot to X with jwm in ~1s | "in ~1s" ???
@Dave_G | Quote: | | To see what I mean, log out of X then once on the CLI type: | I did it... and I think this is what I mean too!
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).
I just would like the cursor shown during the welcome screen to be hidden.
Cordialement.
_________________

|
|
Back to top
|
|
 |
Dave_G

Joined: 21 Jul 2011 Posts: 459
|
Posted: Sun 05 Aug 2012, 10:54 Post subject:
|
|
| Argolance wrote: |
- then a welcome screen is displayed (I get a cursor)
|
What Puppy are you using?
With my 4.3.1, it goes from black screen with the X cursor straight
to the desktop once JWM is loaded.
| Argolance wrote: |
I just would like the cursor shown during the welcome screen to be hidden.
|
My Puppy does not have a welcome screen, or perhaps I haven't set one.
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Sun 05 Aug 2012, 13:15 Post subject:
|
|
Hello Dave_G,
I am actually working on the next "Desktop Environment" of Toutou LINUX, the French version of Puppy 5.3 that will soon be ready: This welcome screen comes with it!
Cordialement.
_________________

|
|
Back to top
|
|
 |
Dave_G

Joined: 21 Jul 2011 Posts: 459
|
Posted: Sun 05 Aug 2012, 13:46 Post subject:
|
|
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.
|
|
Back to top
|
|
 |
Argolance

Joined: 06 Jan 2008 Posts: 1376 Location: PORT-BRILLET (Mayenne - France)
|
Posted: Mon 06 Aug 2012, 13:55 Post subject:
|
|
Hello Dave_G,
| Quote: | | Is it a picture or a combination of picture and text? | 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...
I will try to have a look for xcursorgen and Pcursor...
Thank you!
Cordialement.
_________________

|
|
Back to top
|
|
 |
Dave_G

Joined: 21 Jul 2011 Posts: 459
|
Posted: Mon 06 Aug 2012, 15:31 Post subject:
|
|
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:
| Code: |
ThePID=`pidof unclutter`
kill -9 $ThePID
|
Hope this helps.
|
|
Back to top
|
|
 |
|