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 Wed 20 Aug 2014, 01:08
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 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4334

PostPosted: Mon 06 Aug 2012, 22:44    Post_subject:  

Argolance wrote:
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 ???
Cordialement.
it was just a proof of concept, but:http://murga-linux.com/puppy/viewtopic.php?p=590822#590822
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send_private_message 
Argolance


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

PostPosted: Tue 07 Aug 2012, 06:10    Post_subject:  

Hello,
@Dave_G
Quote:
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:
Quote:
# 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):

Examples:
Quote:
xsetroot -cursor_name question_arrow
Quote:
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! Embarassed

Cordialement!

_________________

Back to top
View user's profile Send_private_message Visit_website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Tue 07 Aug 2012, 09:23    Post_subject:  

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.
Back to top
View user's profile Send_private_message 
seaside

Joined: 11 Apr 2007
Posts: 886

PostPosted: Tue 07 Aug 2012, 11:22    Post_subject:  

Argolance,

You can do this with xsetroot to blank the pointer-

Make a file named none.xbm
Code:
#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:
 xsetroot -cursor none.xbm none.xbm


Cheers,
s
Back to top
View user's profile Send_private_message 
Argolance


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

PostPosted: Tue 07 Aug 2012, 11:27    Post_subject:  

Hello Dave_G,
Quote:
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.

_________________

Back to top
View user's profile Send_private_message Visit_website 
Argolance


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

PostPosted: Tue 07 Aug 2012, 11:29    Post_subject:  

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.

_________________

Back to top
View user's profile Send_private_message Visit_website 
Dave_G


Joined: 21 Jul 2011
Posts: 459

PostPosted: Tue 07 Aug 2012, 12:03    Post_subject:  

@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.
Back to top
View user's profile Send_private_message 
Argolance


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

PostPosted: Tue 07 Aug 2012, 12:25    Post_subject:  

Hello,
Quote:
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! Crying or Very sad
... Unless someone has got opposite information?

Cordialement.

_________________

Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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