PupShutdown-3.0

Miscellaneous tools
Message
Author
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

___________________________________________________________

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

script to show width of button

#36 Post by don570 »

I did a quick experiment to see if buttons can be placed easily
in a window in a script.

Zigbert likes to specify the width of his buttons (and he's the expert)

So I looked at some of his code and made a script.

I made an hbox and then put 4 vboxes inside.

I then experimented with each of the vboxes.

Enclosed is the screen image.

The left hand side vbox is just some non-breaking characters.

The next vbox has a width-request of 100.

The next vbox has a width-request of 200.

Then the far right vbox has a width-request of 100,
but to make the space open I put a few non-breaking characters
in the label <label>   </label> .

It seems to work well.

Image

Here's the final script.

Code: Select all

#!/bin/sh

export shutdown=" 
<window title=\"Experiment\" icon-name=\"gtk-stop\">

<hbox>

   <vbox>
   <text><label>             </label></text>   
   </vbox>

   <vbox>
   <text width-request=\"100\"><label>First button</label></text>
   <button>  
      <label>Lock</label>    
      <input file icon=\"lock48\"></input>
      <action>/usr/local/apps/Xlock/AppRun &</action>
      <action type=\"exit\">Exit-NOW</action>
   </button>
   </vbox>

   <vbox>
   <text width-request=\"200\"><label>Second button</label></text>
   <button>   
       <label>Lock</label>    
       <input file icon=\"lock48\"></input>
       <action>/usr/local/apps/Xlock/AppRun &</action>
       <action type=\"exit\">Exit-NOW</action>
   </button>
   </vbox>
   
    <vbox>
    <text width-request=\"100\"><label>   </label></text>
    </vbox>
    
</hbox>
</window>
"

#echo "$shutdown" | gtkdialog --stdin
gtkdialog3 --program=shutdown --center

unset shutdown

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

Barry Kauler localisation

#37 Post by don570 »

Barry Kauler talked about localising the first screen in Puppy
on this thread

http://murga-linux.com/puppy/viewtopic. ... &start=300


_________________________________________________

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

#38 Post by radky »

don570 wrote:Jemimah has written a similar shutdown application for Fluppy 013
Yes, PupShutdown is just one of many GUI options available to close a Puppy session. Jemimah, runtt21, sc0ttman, tazoc, ttuuxxx, zigbert and other developers have included very nice shutdown managers in their Puppy derivatives. Of course, there is also the default shutdown manager available in the menu of all Puppy releases. The choices are many, and localization for many of those would be relatively easy. :)
don570 wrote:I did a quick experiment to see if buttons can be placed easily in a window in a script.
Yes, button placement in gtkdialog scripts is relatively easy, and PupShutdown incorporates variable button width-request values to automatically compensate for text-strings which vary in length as the global font size is changed. The question (in my mind) is how to best structure the PupShutdown GUI to accommodate the variability in text-string width inherent in various translations. For example, "Restart X" becomes "Relancer le serveur X" in your example of the French translation for PupShutdown, and that translated text string requires a very wide button when viewed at high screen dpi values, such as 144 dpi. Structuring a gtkdialog GUI to look OK in a narrow range of screen dpi values is not difficult. However, a GUI designed to look OK at 78-96 screen dpi, may not retain the same symmetry or visual appeal when viewed at higher screen dpi values. I will continue to experiment. :)

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

suggestion for pupshutdown

#39 Post by don570 »

:idea: I have a suggestion to help localization.

I suggest that you have two interfaces built into one program.
The interface that is in use would depend on the LANG variable.

For instance if LANG is English then the user gets your attractive interface.

Then when the user changes to another LANG
such as French you would use an inferface like Jemimah's program
which is more favorable to localization.

I don't know of any program that does a change of inferface
simply due to localization but I think it is a possibility.
Zigbert's method of localization is compatible with this idea, I think.
______________________________________

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

Re: suggestion for pupshutdown

#40 Post by radky »

don570 wrote::idea: I suggest that you have two interfaces built into one program. The interface that is in use would depend on the LANG variable.
Thanks for the suggestion. I'll think about it for a few days. :)

Post Reply