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 Tue 02 Sep 2014, 04:08
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to Customize Desktop Drive Icon (Solved)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
mikeslr


Joined: 16 Jun 2008
Posts: 777
Location: Union New Jersey USA

PostPosted: Sat 01 Dec 2012, 21:48    Post subject:  How to Customize Desktop Drive Icon (Solved)  

Hi Guys:

Since my desktop is usually covered by open windows, I prefer that it to display no desktop icons, with one exception: the desktop drive icons because. In most puppies, clicking one usually not only mounts the drive/partition but also opens it in the default file manager. As drive icons are the only ones which can detract from an otherwise pleasing Wallpaper, I've taken to customizing them to reflect the theme of the Wallpaper. This is fairly easy to do:

Select an image. Save it as a png. Give it a name. Scale it to be 48 x 48 pixels. Copy it to /usr/local/lib/X11/themes/THEME_X, where THEME_X is whichever theme you're using.Delete drive48.png and rename your icon drive48.png. Switch to another icon theme, and then switch back. Your new drive icon should appear. See attached "MyDesktop": The wallpaper is the current default in Slacko; too stunning to have distracted by anomalous icons. But domes might be wished for. Well, they were igloos 'till I found a better use for them.

But I've run into one "gotchah." Many of the new icon themes take advantage of newer puppy's ability to reflect whether a drive/partition is or isn't mounted by displaying a frame and X around mounted drives/partitions, but not those which are unmounted. See attached "mounteddrives."

The above described simple method doesn't (always?) preserve that capability. How is it done?

Solved: See my post below

Thanks,

mikesLr
MyDektop.png
Description  MyDesktop
png

 Download 
Filename  MyDektop.png 
Filesize  797.57 KB 
Downloaded  245 Time(s) 
mounteddrive.png
 Description   Mounted and Unmounted drive icons
 Filesize   6.83 KB
 Viewed   568 Time(s)

mounteddrive.png


Last edited by mikeslr on Sun 02 Dec 2012, 14:37; edited 1 time in total
Back to top
View user's profile Send private message 
npierce

Joined: 28 Dec 2009
Posts: 858

PostPosted: Sun 02 Dec 2012, 02:04    Post subject:  

The icon_switcher script creates those standardized mounted and standardized locked icons by calling vovchik's pngoverlay utility.

Make sure that you have closebox_outline48.png and locked_outline48.png in the /usr/local/lib/X11/pixmaps/ directory.
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 777
Location: Union New Jersey USA

PostPosted: Sun 02 Dec 2012, 14:48    Post subject: Picture Must Leave Room for Mounted Frame  

Thanks npierce,

Your advice set me to exploring. While doing so, it occurred to me that the image I was using might be too big. Examining it in gimp showed that I had a 48 x 48 pixel image on a 48 x 48 canvas. I resized the image to 46 x 46 pixels, centered and over-wrote the old image. Switching out of then back into the theme produced the attached results.

mikeslr
MountedFrame.png
 Description   Frame shows after reducing image size
 Filesize   5.67 KB
 Viewed   526 Time(s)

MountedFrame.png

Back to top
View user's profile Send private message 
`f00


Joined: 06 Nov 2008
Posts: 809
Location: the Western Reserve

PostPosted: Fri 07 Dec 2012, 13:56    Post subject:
Subject description: overlays
 

hi mikeslr - agree with you there about driveicons and the roxpin

yep, redoing the overlays works well - I believe CatDude showed a redball/greenball variation recently or you could use a green outline rather than that x-closebox image Neutral

size - as long as the name has 48 in it, you can make the actual images/overlays smaller if you wish Smile

some iconsets have very subtle/insubstantial basic driveicons (tried one crystal/glass/ice variation but they tended to just about disappear on most backdrops! mostly I like the semi-transparent ones from dt42 since they show but aren't obtrusive)

lastly (since drive/partition/fs-info usually shows on hover), you can edit the label so no text appears
but you knew that already, right? Wink
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3365
Location: Oregon

PostPosted: Fri 07 Dec 2012, 14:10    Post subject:  

What are the chances of adding those types of icons with the umount x on the icon being functional in Lupu 520?
I can place the those icons in the directory specified, but I am sure that being able to use the x to unmount the drive requires further modifications.
And it is those modifications I am interested in.
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 777
Location: Union New Jersey USA

PostPosted: Mon 17 Dec 2012, 13:47    Post subject: Don't Know regarding unmount x, but probably  

Hi 8-bit,

Sorry for the delay in responding. My threads are all over the place so I rarely look for questions unless one of my posts is about something novel.

I don't know anything about unmount x, and don't have a running Lupu 5.20. But I've used substitute icon in Lupu 5.28. If unmount x works with a theme I would think that it would continue to work with that theme even after you change the drive48.png. On second thought, you may also have to create an "drive_mnt48.png" --or whatever its name is-- that shows the "X" and substitute it as well.


mikesLr

Last edited by mikeslr on Mon 17 Dec 2012, 15:12; edited 1 time in total
Back to top
View user's profile Send private message 
xophist


Joined: 10 Dec 2012
Posts: 26
Location: Coastal Texas

PostPosted: Mon 17 Dec 2012, 14:13    Post subject:  

I have no icons on my desktop, but agree that seeing the drive icons can be useful.

From an xterm:
$ rox ~/.pup_event

I added a keyboard shortcut to launch a rox window showing the drive icons. The default ALT-F4 closes the window.

This example uses Ctrl-F2 to open ~/.pup_event with rox, but choose any key combo you like:

Edit /root/.jwmrc, then "jwm -restart" :

<Key mask="C" key="F2">exec:rox ~/.pup_event</Key>

If this didn't work, and .jwmrc doesn't already use the key combo you selected, it could be that another jwm file does.

To simplify testing, I comment out other files referenced in .jwmrc:

<!--
<Include>/root/.jwm/jwmrc-tmp</Include>
<Include>/root/.jwm/jwmrc-install</Include>
<Include>/root/.jwm/jwmrc-theme</Include>
<Include>/root/.jwm/jwmrc-personal</Include>
-->

On a different topic:
I don't use pupsave, so to autohide the tray (aka taskbar), I have a script copy my edited version of .jwmrc-tray over the default ~/.jwmrc-tray. The relevant line has:

<Tray autohide="true" insert="right" x="0" y="-1" border="1" height="28" >

HTH
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0608s ][ Queries: 13 (0.0043s) ][ GZIP on ]