PupShutdown-3.0

Miscellaneous tools
Message
Author
Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#16 Post by Jim1911 »

radky wrote:PupShutdown 1.4 will be available soon, plus the following new programs: JWM Clockset, PupApps, PupControl and PupSnap.
Good news, PupShutdown 1.3 works great on all pups that I've tried.

Thanks,
Jim

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#17 Post by 8-bit »

How would one replace Shutdown in the Lucid 511 menu with PupShutdown?
Also, what backup program is run by the backup button?

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#18 Post by radky »

8-bit, thanks for your questions.
How would one replace Shutdown in the Lucid 511 menu with PupShutdown?
This would depend on the window manager, but for JWM in Lucid 511 you could try the following:

Go to /etc/xdg/templates/_root_.jwmrc

To add the PupShutdown entry immediately below the Help entry:
Insert the following below line #28 (without the outside quotes):
“ <Program label="PupShutdown" icon="shutdown24.png">exec PupShutdown</Program>
Last edited by radky on Mon 18 Apr 2011, 19:02, edited 1 time in total.

Jim1911
Posts: 2460
Joined: Mon 19 May 2008, 20:39
Location: Texas, USA

#19 Post by Jim1911 »

[quote="radky"]This would depend on the window manager, but for JWM in Lucid 511 you could try the following:

Go to /etc/xdg/templates/_root_.jwmrc

To add the PupShutdown entry immediately below the Help entry:
Insert the following below line #28 (without the outside quotes):
“ <Program label="PupShutdown" icon="shutdown24.png">exec PupShutdown</Program>

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#20 Post by radky »

Do you have the corresponding code for Openbox?
Hi Jim,

Thanks for the question. If I understand correctly, you’re referring to the combination of Openbox and Fbpanel in the upcoming Lucid Puppy 5.2.

For the Fbpanel menu, you could try the following:

Go to /usr/sbin/pfbpanel

To add the PupShutdown entry immediately below the Help entry:
Insert the following on line #774:

echo "item {
name = PupShutdown
action = PupShutdown
image = /usr/local/PupShutdown/icons/shutdown20.png
}" >> $DEFAULT


Then run usr/bin/fbpanel_menu_refresh

---

The PupShutdown entry and surrounding script will look something like this:

echo "menu {
name = Help
image = ${X11PIXMAPS}/help24.png
item {
name = Help
action = defaulthtmlviewer file:///usr/share/doc/index.html
image = ${X11PIXMAPS}/help24.png
}
}" >> $DEFAULT

echo "item {
name = PupShutdown
action = PupShutdown
image = /usr/local/PupShutdown/icons/shutdown20.png
}" >> $DEFAULT


echo "menu {
name = Shutdown
image = ${X11PIXMAPS}/shutdown24.png
item {
name = Exit to prompt
action = wmexit
image = ${X11MINIICONS}/prompt16.xpm
}
item {
name = Reboot computer
action = wmreboot
image = ${X11MINIICONS}/mini-turn.xpm
}
item {
name = Power-off computer
action = wmpoweroff
image = ${X11MINIICONS}/mini-stop.xpm
}
item {
name = Restart X server
action = restartwm
image = ${X11MINIICONS}/mini-x.xpm
}
}" >> $DEFAULT

---

Regards,
radky

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#21 Post by radky »

Version 1.4. See main post.
-Removed redundant code; now supports concurrent instances.
-Added default applications selector.
-Added support for standby mode in ACPI compliant laptops and notebooks.
-Added seamless integration with PupApps Launcher and PupControl Panel for easy access to most Puppy applications and system functions.
-Improved compatibility with the Stardust desktop environment (DuDe).

tlchost
Posts: 2057
Joined: Sun 05 Aug 2007, 23:26
Location: Baltimore, Maryland USA
Contact:

Re: Option "DO NOT SAVE" at shutdown ?

#22 Post by tlchost »

radky wrote:
As you keep rebuilding this pet I take the liberty to ask for the... option "DO NOT SAVE" - at shutdown.
Nancy, I think your request could be very useful for those who boot Puppy in flash memory.
I am running quirky on a bootable usb flashdrive, and at shutdown Quirky tells me that things are already saved in the top laver.

Not sure if you can work around that. Not being able to select no save at shut down is a huge inconvenience when you do not want or need to save changes....killing the power or performing usb interruptus has never appealed to me.

Thom

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#23 Post by radky »

Not sure if you can work around that. Not being able to select no save at shut down is a huge inconvenience when you do not want or need to save changes....killing the power or performing usb interruptus has never appealed to me.
tlchost, thanks for the question. Please check your PM.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#24 Post by radky »

Version 1.5. See main post.
-Access buttons for System Information and Task Management are now transposed.
-Drop-down lists in the applications selector now show installed programs only.
-After first install, please set default apps as follows: Pref->Configuration options->Apps.
-Supported backup programs include gadmin-rsync, pbackup, pmirror and snap2.
-Supported task-manager programs include htop, lxtask, pprocess and xfce4-taskmanager.
-Shutdown code is now enhanced to comply with most Puppy derivatives and window managers.
-Improved support for the suspend feature of ACPI compliant laptops and notebooks.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#25 Post by radky »

Version 1.6. See main post.
-Improved access to help resources.
-Added support for screen fonts up to 144 dpi, in 6-dpi increments only.
-Added improved and consistent display of GUI buttons at all screen resolutions.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#26 Post by radky »

How do I add PupShutdown to the first-order menu of IceWM in Lupu-511, Lupu-520 and Lupu-525?
Go to /etc/xdg/templates/_root_.icewm_menu.

To add the PupShutdown entry immediately below the Help entry of the IceWM menu:
Insert the following below line #52:

Code: Select all

prog   PupShutdown shutdown24.png PupShutdown
To replace the current IceWM Shutdown menu entry with PupShutdown:
Delete (or comment out) lines 54-65, and replace with the following:

Code: Select all

prog   PupShutdown shutdown24.png PupShutdown
Then run /usr/sbin/fixmenus.
Last edited by radky on Mon 18 Apr 2011, 22:40, edited 1 time in total.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#27 Post by nooby »

Radky very important things you do there. Thanks for providing it.
I use Google Search on Puppy Forum
not an ideal solution though

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#28 Post by radky »

nooby wrote:Radky very important things you do there. Thanks for providing it.
Thank you nooby for your kind comments. :)

In prior forum posts in this thread, you can find additional instructions for adding PupShutdown to the first-order menu of JWM or FBPanel/Openbox.

User avatar
ETP
Posts: 1193
Joined: Tue 19 Oct 2010, 19:55
Location: UK

#29 Post by ETP »

May I also thank radky for his huge & welcome contributions to Puppy.

An alternative approach which I have adopted is to edit the quick launch menu in ICEWM to provide icons for CD insert/eject & PupShutdown on the taskbar.

The syntax is slightly different but provides a backdoor to pup control by selecting exit on the shutdown window.

Both can be seen in action here:

http://megaswf.com/simple_serve/1046691/
Attachments
screenshot.1.png
(55.15 KiB) Downloaded 1173 times

User avatar
mickee
Posts: 207
Joined: Tue 08 Feb 2011, 14:59
Location: Saskatoon SK Canada, Gateway 5300 Laptop, 600MHz Celeron, 384MB RAM, lucid puppy 5.2 (Full Install)
Contact:

#30 Post by mickee »

Awesome radky ! Works eggzellently!

Peace
[img]http://i17.photobucket.com/albums/b68/The_Wizard_of_OZ/Lindows-NOT-1.jpg[/img]
Linux is [i][b]NOT[/b][/i] Windows. Doesn't [i][b]PRETEND[/b][/i] to be, Doesn't [i][b]WANT [/b][/i]to be; Don't try to [i][b]MAKE[/b][/i] it be.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

#31 Post by radky »

An alternative approach which I have adopted is to edit the quick launch menu in ICEWM to provide icons for CD insert/eject & PupShutdown on the taskbar.
ETP,
Launching either PupShutdown or PupControl’s Shutdown manager from the quick launch menu of IceWM is an interesting approach. Thanks for sharing. :)

Works eggzellently!
mickee,
Thanks for your positive comments. By the way, you and ETP have great avatars. :D

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

localised version of PupShutdown-16

#32 Post by don570 »

Have you been thinking about localising PupShutdown?
I recently tried Snow Puppy and it had PupShutdown installed.

http://www.murga-linux.com/puppy/viewto ... 94&t=63163

http://www.murga-linux.com/puppy/viewtopic.php?t=66836

Using Zigbert's method I did a quick and dirty localisation so that I
could switch between French and English by changing the country.

You might be interested in the code. It's quite simple.
Install this pet on Snow puppy and switch back and forth between
French and English.

http://www.filedropper.com/pupshutdown-snow-16

Here is what it looks like in French. I had to put in hard blank spaces
to get the buttons to look symmetrical.

Image
______________________________________________________________

User avatar
mickee
Posts: 207
Joined: Tue 08 Feb 2011, 14:59
Location: Saskatoon SK Canada, Gateway 5300 Laptop, 600MHz Celeron, 384MB RAM, lucid puppy 5.2 (Full Install)
Contact:

#33 Post by mickee »

radky wrote:mickee,
Thanks for your positive comments. By the way, you and ETP have great avatars. :D
I use that avatar alot. It's actually a 6 inch statue I have, complete with lots of drool. It's from "Mickey and The Runaway Brain" - a sort of Dr. Jekyl/Mr. Hyde cartoon. This version of Mickey Mouse is from when he traded brains with his monster. The funnier part was mickey's voice coming out of the gigantic monster's body, LOL.
[img]http://i17.photobucket.com/albums/b68/The_Wizard_of_OZ/Lindows-NOT-1.jpg[/img]
Linux is [i][b]NOT[/b][/i] Windows. Doesn't [i][b]PRETEND[/b][/i] to be, Doesn't [i][b]WANT [/b][/i]to be; Don't try to [i][b]MAKE[/b][/i] it be.

radky
Posts: 977
Joined: Mon 03 May 2010, 03:13

Re: localised version of PupShutdown-16

#34 Post by radky »

don570 wrote:Have you been thinking about localising PupShutdown?
I recently tried Snow Puppy and it had PupShutdown installed.
Thank you for promoting the importance of GUI localization. As true for most in the Puppy community, I have followed your recent forum posts with considerable interest, and I applaud your insight and dedication.

Most of my applications, including PupShutdown, are structured for a certain GUI symmetry that I try to maintain for all global font sizes (72-144 dpi). For some graphical interfaces, a text string that looks OK at 78-dpi may distort the GUI at higher dpi settings. In some instances, by simply adding a few extra characters to certain text strings, a GUI can distort significantly (see below for your example of French localization in PupShutdown at 90-dpi screen resolution).

I could change the format of PupShutdown by increasing the size of the main GUI, and by extending the horizontal dimension of the access buttons, but it would be difficult to anticipate a size that would be sufficient for the translated text of all locales. Also, the large access buttons would appear disproportionate when the localized text strings are small. Even so, I’ll continue to look for ways to embrace localization. Thanks again for your suggestions. :)
Attachments
PSD-En.png
(45.24 KiB) Downloaded 1627 times
PSD-Fr.png
(49.82 KiB) Downloaded 1671 times

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Fluppy shutdown app

#35 Post by don570 »

Jemimah has written a similar shutdown application for Fluppy 013
It is very simple. Just an hbox and then 3 vboxes inside that hbox.
There is no attempt by Jemimah to control the width of a button.
It works well but doesn't look very fancy...... but then it was probably
written in a rush.

Here's a picture of the French version from

http://www.murga-linux.com/puppy/viewtopic.php?t=65222

Image

___________________________________________________________

Post Reply