How to hide desktop icons? Should I run as root?

Booting, installing, newbie
Message
Author
seeker
Posts: 89
Joined: Thu 27 Nov 2008, 00:43
Location: Indiana, USA

#16 Post by seeker »

 Is there an option to hide every desktop icon? I'm not a fan of them.
Same here, but they are too useful for me to do without. I have been using a script of mine to hide and show my desktop icons as I desire for several months. I leave the drive icons on all of the time. It works for me running a frugal Puppy 4.12 with icewm from EZpup 4.0. I run it from the Quick Launch in my taskbar. Use at your own risk.

Code: Select all

#!/bin/bash

pin_file="/root/Choices/ROX-Filer/PuppyPin"
saved_file="/root/Choices/ROX-Filer/DO_NOT_DELETE"
temp_file="/root/Choices/ROX-Filer/PuppyPin2"
backdrop="</backdrop>"
pup_event=".pup_event"
close_tag="</pinboard>"

clear_pinboard ()
{
	#read everything from the pinboard into the temp file except application icons.
	read line; echo $line >>$temp_file
	read line; echo $line >>$temp_file

	while read line
	do
	if echo "$line" | grep -q "$backdrop"; then
	  echo "$line" >>$temp_file
	fi
	if echo "$line" | grep -q "$pup_event"; then
	  echo "$line" >>$temp_file
	fi
	if echo "$line" | grep -q "$close_tag"; then
	  echo "$line" >>$temp_file
	fi
done
} < $saved_file

icons_restore ()
{
	#read the file header and original saved icons into the temp file.
	#skip the old .pup_event icons and pinboard closing tag.
	while read line
	do
	if echo "$line" | grep -q "$pup_event"; then
	  continue
	fi
	if echo "$line" | grep -q "$close_tag"; then
	  continue
	fi
	echo "$line" >>$temp_file
	done
} < $saved_file

drives_restore ()
{
	#read the current .pup_event icons and pinboard closing tag from the pinboard into the temp file.
	#skip everything else.
	while read line
	do
	if echo "$line" | grep -q "$pup_event"; then
	  echo "$line" >>$temp_file
	fi
	if echo "$line" | grep -q "$close_tag"; then
	  echo "$line" >>$temp_file
	fi
	done
} < $pin_file


if [ -e $saved_file ]; then
	icons_restore
	drives_restore
	rm -f $pin_file
	sync
	cp $temp_file $pin_file
	rm -f $saved_file
	rm -f $temp_file
	sync
	rox -p /root/Choices/ROX-Filer/PuppyPin
else
	if [ -e $temp_file ]; then
		rm -f $temp_file
		sync
	fi
	touch $temp_file
	sync
	cp $pin_file $saved_file
	clear_pinboard
	sync
	cp $temp_file $pin_file
	sync
	rm -f $temp_file
	rox -p /root/Choices/ROX-Filer/PuppyPin
fi

exit 0
Seeker

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#17 Post by steve_s »

seeker: very nice! I am looking to set up fluxbox as a 5.1.1 version of pupflux and this script works wonders for it...added it as a menu item and am giving you credit. Good stuff! 8)

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#18 Post by DaveS »

Spup Frugal HD and USB
Root forever!

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#19 Post by Béèm »

hmm. launchbar.pet has been renamed?
I tried it in wary 070, but it doesn't work.
In quirky and lucid, no problem.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#20 Post by DaveS »

Béèm wrote:hmm. launchbar.pet has been renamed?
I tried it in wary 070, but it doesn't work.
In quirky and lucid, no problem.
No Beem, launchbar.pet (for Lucid) is here http://www.murga-linux.com/puppy/viewto ... 979#440979

Not tried with Wary. Will see what works now.......
Spup Frugal HD and USB
Root forever!

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#21 Post by DaveS »

Béèm wrote:hmm. launchbar.pet has been renamed?
I tried it in wary 070, but it doesn't work.
In quirky and lucid, no problem.
Tried it in Wary, it works fine but after installation I had to run fixmenus, then restart jwm.
Spup Frugal HD and USB
Root forever!

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#22 Post by Béèm »

DaveS wrote:
Béèm wrote:hmm. launchbar.pet has been renamed?
I tried it in wary 070, but it doesn't work.
In quirky and lucid, no problem.
Tried it in Wary, it works fine but after installation I had to run fixmenus, then restart jwm.
IC, didn't do the fixmenus step. :oops:
Works now. Thanks.
I even made it vertical on the left side.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#23 Post by Béèm »

DaveS wrote:
Béèm wrote:hmm. launchbar.pet has been renamed?
I tried it in wary 070, but it doesn't work.
In quirky and lucid, no problem.
No Beem, launchbar.pet (for Lucid) is here http://www.murga-linux.com/puppy/viewto ... 979#440979

Not tried with Wary. Will see what works now.......
Sorry for the confusion, but the picture looks the same as for launchbar.
Will have to try Icontray also then.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

User avatar
Béèm
Posts: 11763
Joined: Wed 22 Nov 2006, 00:47
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

#24 Post by Béèm »

Béèm wrote:
DaveS wrote:
Béèm wrote:hmm. launchbar.pet has been renamed?
I tried it in wary 070, but it doesn't work.
In quirky and lucid, no problem.
No Beem, launchbar.pet (for Lucid) is here http://www.murga-linux.com/puppy/viewto ... 979#440979

Not tried with Wary. Will see what works now.......
Sorry for the confusion, but the picture looks the same as for launchbar.
Will have to try Icontray also then.
Well, I probably am missing something obvious.
Tried Icontray and the way of implementing seems to look exactly the same as launchbar.

The final point is, they both are valid and useful utilities and should be standard in any puppy.
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
[url=http://puppylinux.org/wikka/HomePage]Consult Wikka[/url]
Use peppyy's [url=http://wellminded.com/puppy/pupsearch.html]puppysearch[/url]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#25 Post by musher0 »

Hello, "Windows XP"

Here's another easy way to change or remove the icons on the ROX desktop:

First, bring up a console and type:

1) cd /root/Choices/ROX-Filer

2) cp PuppyPin PuppyPin.bak

Once you've got your back-up, do as PizzasGood suggests above, i.e. remove the icons you don't want. by right-clicking, etc.

If you don't like the result, you can recopy your back-up as the original PuppyPin and start over.

Once you've finished, make another back-up of the new PuppyPin, perhaps under the name PuppyPin.personal. That's because the original PuppyPin has the bad habit of re-appearing every time you load a new *.sfs file in your your Puppy (any Puppy/Quirky/Wary, actually...). It's annoying, but what can we do! :roll:

That way, if you load say, openoffice.sfs -- or "whatever.sfs", you simply go back to /root/Choices/ROX-Filer and recopy your PuppyPin-personal to PuppyPin. Then, again in console, type

rox -p=/root/Choices/ROX-Filer/PuppyPin

and your desktop comes back as you designed it.

If you want to keep some icons but still want a "clean" desktop, consider having a ROX bar on one of the sides of the screen. For ex., typing

rox -t=topbar

in a console will create a ROX bar on top of the screen.

rox -r=rightbar

will create a ROX bar at the right of the screen.

(For the record, the code letters are -l for a left bar, and -b for a bottom bar.)

You can then drag the icons you need to one of those bars and remove them as previously explained from the main desktop area.

I hope this helps!
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

mill0001
Posts: 358
Joined: Thu 01 Feb 2007, 16:30
Location: "People's Republik of Kalifornia"

#26 Post by mill0001 »

See here,
http://murga-linux.com/puppy/viewtopic.php?t=59924
for an easy way to hide drive icons.

Post Reply