another way to activate the line launch function is through aemenu and the following launch command activating the menu that follows it:Puppus Dogfellow wrote:
[...]
the following guide assumes jwm. you can use rox panels or alter the menu code for other windows managers if you don't have it/prefer not to use it.
Code: Select all
#!/bin/sh
#aemenu -rc /root/vtgz
#name mae and place in /root/my-applications/bin/
killall -q aemenu
sleep 0.1s
aemenu -rc /root/vtgz
Code: Select all
cmd " vtg" vtg
menu "defaults/original puppy desktop"
cmd " audiomixer" defaultaudiomixer
cmd " audioplayer" defaultaudioplayer
cmd " browser" defaultbrowser
cmd " calendar" defaultcalendar
cmd " cdplayer" defaultcdplayer
cmd " chat" defaultchat
cmd " chmviewer" defaultchmviewer
cmd " ~ 'Chooser' ~" /usr/bin/defaults-chooser
cmd " connect" defaultconnect
cmd "console" "urxvt"
cmd " contact" defaultcontact
cmd " draw" defaultdraw
cmd " email" defaultemail
cmd " htmleditor" defaulthtmleditor
cmd " htmlviewer" defaulthtmlviewer
cmd " imageviewer" defaultimageviewer
cmd " mediaplayer" defaultmediaplayer
cmd " notecase" notecase
cmd " paint" defaultpaint
cmd "puppy package manager" "ppm"
cmd "puppy control panel" "pcp"
cmd " spreadsheet" defaultspreadsheet
cmd "screen shot" "tas"
cmd " texteditor" defaulttexteditor
cmd " textviewer" defaulttextviewer
cmd " videoplayer" defaultvideoplayer
cmd " wizardwizard" wizardwizard
cmd " wordprocessor" defaultwordprocessor
cmd "Xlock setup" "/usr/local/apps/Xlock/AppRun -configure"
cmd "Xlock lock screen" "/usr/local/apps/Xlock/AppRun -locknow"
end
menu "rox"
cmd "rox /" "rox /"
cmd " ~ ROX-Filer ~" "rox ~"
cmd " Close All Rox" "cr"
cmd " rox Recents " "rr"
cmd " rox Bookmarks" "rb"
cmd "applications" "rox /usr/share/applications"
cmd "/etc" "rox /etc"
cmd "/mnt" "rox /mnt"
cmd "/mnt/home" "rox /mnt/home"
cmd "my-applications" "rox /root/my-applications/bin"
cmd "my-documents" "rox /root/my-documents"
cmd "rox /tmp" "rox /tmp"
cmd "rox /root/.Trash" "rox /root/.Trash"
end
menu "launchers and consoles" # beginning of menu
cmd "findnrun" "fnr"
cmd "gexec" "gexec"
cmd "grun" "grun"
cmd "lxterminal" "lxterminal"
cmd "pexec" "pexec"
cmd "prun" "prun"
cmd "roxterm" "roxterm"
cmd "rxvt" "rxvt"
cmd "sakura" "sakura" # program to launch
cmd "urxvt" "urxvt"
end # end of menu
menu "supplemental 1" # beginning of menu
cmd "close all desktop instances" "cadi" # program to launch
cmd "close current desktop instances" "ccdi" # program to launch
cmd "partview" "partview" # program to launch
cmd "lxtask" "lxtask" # program to launch
cmd "htop" "htop" # program to launch
cmd "winswitcher" "winswitcher"
cmd "jwm -restart" "jwm -restart"
cmd "5copies" "5copies"
cmd "5copiesDir" "5copiesDir"
cmd "nwp" "wp"
cmd "left full" "b5"
cmd "right full" "b10"
cmd "slocate search all" "slac"
cmd "slocate search limited" "sloc"
cmd "slocate update databases" "sluc"
cmd "spacefm" "spacefm"
end # end of menu
menu "supplemental 2" # beginning of menu
cmd "chromium" "chromium"
cmd "firefox" "firefox"
cmd "galculator" "galculator"
cmd "gcolor2" "gcolor2"
cmd "gfnrename" "gfnrename"
cmd "gfontsel" "gfontsel"
cmd "goldendict" "goldendict"
cmd "google-chrome" "google-chrome"
cmd "palemoon" "palemoon"
cmd "pfind" "pfind"
cmd "recoll" "recoll"
cmd "xpad-backup" "xpad-backup"
cmd "xpad-clear" "xpad-clear"
cmd "xpad" "xpad"
end # end of menu
menu "jwm menu maker" # beginning of menu
cmd "jwmxx-leafpad-grab executables" "cd /usr/share/applications; grep Exec= *.desktop | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/jwmxx; leafpad /root/my-documents/Text/jwmxx
cmd "jwmxx-geany-grab executables" "cd /usr/share/applications; grep Exec= *.desktop | grep -o 'Exec=.*' | cut -f2- -d'=' > /root/my-documents/Text/jwmxx; geany /root/my-documents/Text/jwmxx
cmd "make a menu entry" "jwmkr"
cmd "add the menu template" "jwmenuplate"
menu "ae menu maker"
cmd "ae menu item maker" "aeae"
cmd "ae menu slot maker" "aeaem"
end
end # end of menu
#menu "supplemental 3" # beginning of menu
#end # end of menu
#name vtgz and place in /root to be able to launch it with the mae script above/change location in mae to reflect change in location or title of vtgz
if you're using rox, you can give yourself a keyboard shortcut without actually having to fiddle with a windows manager. just drag the script to the desktop, right click, choose edit, then click the box for set keyboard shortcut. whatever combo you press with be recorded. winkey +l, m,v, or g all sort of make sense...
aemenu as vgt launcher upgraded