Start/Shutdown Music Play Setup

A home for all kinds of Puppy related projects
Post Reply
Message
Author
User avatar
Abnormalter
Posts: 95
Joined: Sun 31 Jan 2010, 10:56
Location: Russia

Start/Shutdown Music Play Setup

#1 Post by Abnormalter »

I'm presents it for using it to any Lucid Puppy 5; typically it's needs to using it on cooperated of software by Lucid-Puppy5-Patching-1.02 (see http://www.murga-linux.com/puppy/viewto ... 456#434456 please). But the package can be used ordinally too.

Note. If using both packages install my 'Lucid-Puppy5-Patching-1.02' (http://www.murga-linux.com/puppy/viewto ... h&id=30752) package FIRSTLY, and the 'Start/Shutdown Music Play Setup' package SECONDLY, please!

The package has a Music Themes Library and have very usable Scripts for Start / Shutdown playing it. And any users may be Setups it for adjusting own media files for playing.

I'm just grab many OSs to Music Themes for using it to Puppy! :) And User can be add other Theme (in mp3 media format, has 3..5 seconds at play time), uses two Pane on Setup (see #2 screenshot please). Using Drag & Drop operation for add an user's media file to the Setup Pane please.

On the Setup you may adjusting the Music Themes who playing on start or shutdown/restart/lock your OS, see #1 screenshot please.

As other reasonable feature, it use Shutdown Pane, who can be throw by especially Button present on the Tray, and you may press it by 'Shutdown' position on Menu of Puppy too. See my screenshot pane_en for viewing it.

Use it & enjoy! :)

UPDATE 2010-07-24.
I was update this package to finally 1.02.
Attachments
#2.png
Two Pane of it
(43.8 KiB) Downloaded 681 times
#1.png
One Pane of it
(39.04 KiB) Downloaded 672 times
Last edited by Abnormalter on Sat 24 Jul 2010, 20:52, edited 2 times in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#2 Post by Lobster »

:?

Installed the two (should it be 3?) files in 213
My menu changed and a new shutdown button added (amongst other things)
No sign of music shutdown program . . .
Update - just found it under utility . . . OK gonna test :lol:

Lock desktop worked once
Music played twice before trying to shutdown
Shutdown
and reboot not working from button (bottom right) dialogue)
or from menu
New icons for connection, shutdown, Firefox, Geany etc added
to menubar
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#3 Post by Lobster »

this was your /usr/local/dtu/shutdown.sh

Code: Select all

#!/bin/sh
########################## Shutdown/Restart/Lock Pane with Music Play ######################
##############################  (c) AT, 2010-07-14,16, by LGPL ########################
##########################################################################
#Configuration file path
CONFIG="$HOME/.config/mp"
SCRIPT_DIR="`dirname $0`"
IMAGES_DIR="$SCRIPT_DIR/images"
# Get the Language depend strings...
. $SCRIPT_DIR/lang-set
#
# Shitdown Music Play if configure it...
[ -f $CONFIG ] && MP_SHUTDOWN="`cat $CONFIG | grep '^MP_SHUTDOWN' | tr -d 'MP_SHUTDOWN='`"
[ -f $CONFIG ] && MP_OPTION="`cat $CONFIG | grep '^MP_OPTION' | tr -d 'MP_OPTION='`"
[ "$MP_SHUTDOWN" != "" ] && madplay $MP_OPTION $MP_SHUTDOWN &
#
export BOOKMAN_SHUTDOWN="
<window title=\"$W_TITLE\" icon-name=\"gtk-preferences\" window-position=\"1\">
 <vbox>
  <hbox>
   <text>
    <label>$MSG_SHUTDOWN</label>
   </text>
   <button>
    <input file>$IMAGES_DIR/poweroff36.png</input>
    <action>exec wmpoweroff</action>
   </button>
  </hbox>
  <hbox>
   <pixmap><input file>$IMAGES_DIR/blank.png</input></pixmap>
  </hbox>
  <hbox>
   <text>
    <label>$MSG_REBOOT</label>
   </text>
   <button>
    <input file>$IMAGES_DIR/restart36.png</input>
    <action>exec wmreboot</action>
   </button>
  </hbox>
  <hbox>
   <pixmap><input file>$IMAGES_DIR/blank.png</input></pixmap>
  </hbox>
  <hbox>
   <text>
    <label>$MSG_LOOK</label>
   </text>
   <button>
    <input file>$IMAGES_DIR/lock36.png</input>
    <action>exec /usr/local/apps/Xlock/AppRun -locknow</action>
   </button>
  </hbox>
  <hbox>
   <pixmap><input file>$IMAGES_DIR/blank.png</input></pixmap>
  </hbox>
  <hbox>
   <button cancel></button>
  </hbox>
 </vbox>
</window>
"
gtkdialog3 --program=BOOKMAN_SHUTDOWN
unset BOOKMAN_SHUTDOWN
# Shitdown Music Play if configure it...
may well be but that needs changing to shutdown
<action>exec wmreboot</action>
and
<action>exec wmpoweroff</action>
worked when wm was removed like so
Maybe someone else can advise you better
<action>exec reboot</action>
and
<action>exec poweroff</action>
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
Abnormalter
Posts: 95
Joined: Sun 31 Jan 2010, 10:56
Location: Russia

#4 Post by Abnormalter »

Thanks dear Lobster for find my mistake: 'Shitdown' ! :)
About commands 'wmreboot' & 'wmpoweroff'. It worked fine under all Puppy... I'm don't know a cause for change to your suggestion.
Or I understand not you about it?

PS. I was update first package. Use it please:
http://www.murga-linux.com/puppy/viewto ... h&id=30807
(Description available here: http://www.murga-linux.com/puppy/viewto ... 456#434456)

User avatar
Abnormalter
Posts: 95
Joined: Sun 31 Jan 2010, 10:56
Location: Russia

Updating info

#5 Post by Abnormalter »

INFORMATION: Now I was update this package to finally 1.02.
http://www.murga-linux.com/puppy/viewto ... h&id=30946

Thanks for use it! :)

Post Reply