PuppyLinux : TalkingStickCodeSnippets

PuppyLinuxMainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2008-02-07 12:26:59 by CrustyLobster

Additions:
image



Edited on 2008-02-04 15:31:51 by CrustyLobster

Additions:
image


CategoryDevelopment




Edited on 2008-02-03 14:27:37 by CrustyLobster

Additions:
I have modified it, to make independent of KDE and use JWM as default
Lobster

Deletions:
I have modified it, to make independent of KDE and use JWM as default Lobster



Edited on 2008-02-03 13:06:51 by CrustyLobster

Additions:
I have modified it, to make independent of KDE and use JWM as default Lobster



Edited on 2008-02-03 12:53:02 by CrustyLobster

Additions:
--icon '/root/puppy-reference/mini-icons/mini.exit.xpm' \
--left --menubox 'Please choose\n an option' 320x240 4 \


Deletions:
--icon '/usr/share/icons/puppy-svg.png' \
--left --menubox 'Please choose\n an option' 320x340 4 \




Edited on 2008-02-03 12:39:34 by CrustyLobster

Additions:
'3' ' Restart JWM' \
#poweroff
#reboot
# echo -n "reboot" > /tmp/wmexitmode.txt
#restart window manager


Deletions:
'3' ' Restart KDE' \
#poweroff
#reboot
# echo -n "reboot" > /tmp/wmexitmode.txt
#restart KDE




Edited on 2008-02-03 12:34:52 by CrustyLobster

Additions:
#!/bin/sh
#startkde2
# ! -f /etc/windowmanager ] && echo "startkde" &>/etc/windowmanager; export CURRENTWM="startkde";


Deletions:
requires KDE?
startkde2
! -f /etc/windowmanager ] && echo "startkde" &>/etc/windowmanager; export CURRENTWM="startkde";




Edited on 2008-02-03 09:42:43 by CrustyLobster

Additions:

Home/News Updated - Faqs - Spec - Bugs - Ideas - Artwork - Code - Offline Webpage - Contributors

image
"Lassie" page based on Puppy 3.02 Alpha latest code base
"Phoenix" page based on Puppy 2.14r (retro) maximum stability for older hardware




Oldest known version of this page was edited on 2008-02-03 09:36:11 by CrustyLobster []
Page view:
Exit routine from Lighthouse Puplet
requires KDE?

startkde2
 ! -f /etc/windowmanager ] && echo "startkde" &>/etc/windowmanager; export CURRENTWM="startkde";

Xdialog --title Logoff  --wmclass logoff --no-cancel \
	    --icon '/usr/share/icons/puppy-svg.png'  \
	    --left --menubox 'Please choose\n    an option' 320x340 4 \
  '1' ' Shut Down - Power Off'  \
  '2' ' Reboot Computer' \
  '3' ' Restart KDE' \
  '4' ' Switch to IceWM'\
  '5' ' Exit to Command Line' \
2>/tmp/MUlogout.tmp

r=`tail -n 1 /tmp/MUlogout.tmp`
   
if [ "$r" == "1" ];then
  #poweroff
  wmpoweroff
fi

if [ "$r" == "2" ];then
  #reboot
#  echo -n "reboot" > /tmp/wmexitmode.txt
  wmreboot
  exit 0
fi

if [ "$r" == "3" ];then
  #restart KDE
  restartwm
fi

if [ "$r" == "5" ];then
  #console
  rm -f /tmp/wmexitmode.txt
  exit 0
fi

if [ "$r" == "4" ];then  # restart to IceWM
  MSG=`which gxmessage` || MSG=xmessage
   $MSG -title 'Restart to IceWM' -name startkde -center -borderless -buttons '' "
	    Restarting to IceWM . . ." -geometry 300x60 -timeout 3 &
   sync  # sync drives & check for dangling starticewm procs
   if pidof starticewm | grep [0-9];then killall starticewm; fi
   if pidof kicker | grep [0-9];then
	  /usr/local/bin/killkicker
	  sleep 2
   fi
   rm -rf /etc/windowmanager
   echo "starticewm" &>/etc/windowmanager; export CURRENTWM="starticewm";
   restartwm
   echo -e "Restarting X Windows...  To Continue Type: ${cyan}xwin${NC} [Enter]"
   exec xwin $CURRENTWM &
fi
exit
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.0
Page was generated in 0.2116 seconds