Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 17 Apr 2014, 20:10
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
How to make the root mouse pointer hidden? [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1776
Location: PORT-BRILLET (Mayenne - France)

PostPosted: 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
View user's profile Send private message Visit poster's website 
ETP


Joined: 19 Oct 2010
Posts: 485
Location: UK

PostPosted: 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
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1776
Location: PORT-BRILLET (Mayenne - France)

PostPosted: 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
View user's profile Send private message Visit poster's website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: 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
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1776
Location: PORT-BRILLET (Mayenne - France)

PostPosted: 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
View user's profile Send private message Visit poster's website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: 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
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1776
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 04 Aug 2012, 12:17    Post subject:  

OK! thank you...
Back to top
View user's profile Send private message Visit poster's website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: 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:
Code:
cd /usr/X11R7/bin

then type:
Code:
Xorg


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
Code:
 CONTROL+ALT+F1

then
Code:
 CONTROL+C

followed by
Code:
xwin

to return to normal.

So unless someone can think of something else, I don't see how this can
be overcome.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: 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)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1776
Location: PORT-BRILLET (Mayenne - France)

PostPosted: 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?) Embarassed
Quote:
that you can boot to X with jwm in ~1s
"in ~1s" Shocked ???

@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
View user's profile Send private message Visit poster's website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: 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
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1776
Location: PORT-BRILLET (Mayenne - France)

PostPosted: 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
View user's profile Send private message Visit poster's website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: 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
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1776
Location: PORT-BRILLET (Mayenne - France)

PostPosted: 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
View user's profile Send private message Visit poster's website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [23 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0707s ][ Queries: 12 (0.0038s) ][ GZIP on ]