How to make the root mouse pointer hidden? [SOLVED]

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#16 Post by technosaurus »

Argolance wrote:Hello,
Thank you.
@technosaurus
Actually I have shown
Sorry but may I please have a bit more? (Where did you show this?) :oops:
that you can boot to X with jwm in ~1s
"in ~1s" :shock: ???
Cordialement.
it was just a proof of concept, but:http://murga-linux.com/puppy/viewtopic. ... 822#590822
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].

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#17 Post by Argolance »

Hello,
@Dave_G
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
I already tried this, following ETP post (above) but did not get what I am expecting for.

But I found something interesting: :wink:
Using xsetroot:
# 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>
... 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):
Image
Examples:
xsetroot -cursor_name question_arrow
xsetroot -cursor_name watch
I can at least change the cursor (top left arrow) to another one.

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! :oops:

Cordialement!

User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

#18 Post by Dave_G »

Hi Argolance

Nice find with xsetroot.
I especially like the -bitmap option.

By the way, keep in mind that some apps use their own mouse cursors
so it may over-ride your setting.
If I'm not mistaken, FireFox is one of those with it's own cursors.

seaside
Posts: 934
Joined: Thu 12 Apr 2007, 00:19

#19 Post by seaside »

Argolance,

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
};
then

Code: Select all

 xsetroot -cursor none.xbm none.xbm
Cheers,
s

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#20 Post by Argolance »

Hello Dave_G,
By the way, keep in mind that some apps use their own mouse cursors
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.
Thank you!

Cordialement.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#21 Post by Argolance »

Hello seaside,
... This is quite perfect!
I was wondering why twice 'none.xbm'... Thinking it was a mistake, I first tried just with one: cursor is a simple cross :wink:, twice: no cursor is displayed: great!

Cordialement.

User avatar
Dave_G
Posts: 453
Joined: Thu 21 Jul 2011, 13:53

#22 Post by Dave_G »

@seaside

Thanks for confirming that xbm cursors still work.
I first came across them years ago when I was messing about with
RedHat but thought it was a thing of the past.

Now that I know and the xbm is a simple format, I'm gonna download and
maybe even make a whole bunch of them.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#23 Post by Argolance »

Hello,
I first came across them years ago when I was messing about with
RedHat but thought it was a thing of the past.
I was used to put hidden xbm pictures (such as ".jwm-bClose.xbm", etc.) in /root/ which were taken into account by jwm and overrode default buttons of the applications windows... but this is unfortunately "a thing of the past" too! :cry:
... Unless someone has got opposite information?

Cordialement.

Post Reply