Here's a nice and useful little line you can add at the top or bottom of the spm to poke for what's on your desktop:
Code: Select all
cmd "What's running here" "aemenu --switch"
Code: Select all
cmd "What's running here" "aemenu --switch"
Well... that's a matter of opinion / conviction, I suppose. Once you get the knack of it, you'll want to create aemenus to have very easy access to your files / groupings / programs / directories / disks.technosaurus wrote:@dejan
[...]
btw jwm can have separate menus for left, middle and right click (root id of 1,2,3) in most Puppies it is set to 3 (right click) - and is also the one in the tray
if you set the one in the tray to 0 or 4-9 that would allow you to use all 3 others however you want - and set it up in /etc/xdg/templates so that it gets rebuilt with fixmenus - you don't really need aemenu if you already have jwm
[...]
Code: Select all
<Key mask="C" key="Escape">exec:/root/my-applications/ae/aemenu.sh</Key>
Actually, I was only half serious. I have a bash script for that, so if you feel it's not essential, do not do it for me? Meaning: I have come up with a solution for myself. But if others think there is a need....this should be possible, but wouldn't one of the following 2 very simple solutions also work
a) make an item for "rox /mnt"
b) make an item for pmount
but i will look into it, it seems to be a nice exercise...
this is a common problem with us non-natives. we could interpret subtext only by keywords, so jokes, sarcasm and irony often get lost. and if we interpret by keywords, it's mostly wrong.musher0 wrote:Actually, I was only half serious.
no offense intended no eulogy needed, there was just a 'missing link' (for me) between the thread and the posts...dejan555 wrote:Simple Puppy Menu is great aragon, and now customizable too, you did great job with it, well done,
now i see the missing linkI'm just thinkering of different ways to parse desktop files, here's a really simple two liner launcher-like Xdialog combobox I've come up withCode: Select all
#!/bin/sh PROGRAM=$(Xdialog --combobox Run 0 0 `ls /usr/share/applications/ | grep ".desktop"` 2>&1) exec $(cat /usr/share/applications/$PROGRAM | grep "Exec" | grep -v "TryExec=" | sed 's/Exec=//') &
whow, in 2 lines, very niceCode: Select all
#!/bin/sh PROGRAM=$(Xdialog --combobox Run 0 0 `ls /usr/share/applications/ | grep ".desktop"` 2>&1) exec $(cat /usr/share/applications/$PROGRAM | grep "Exec" | grep -v "TryExec=" | sed 's/Exec=//') &
only half-serious meant but nevertheless here are possible solutions you might trymusher0 wrote:Finally, would it be much trouble to come up with an "spdm" (simple puppy disk menu) to show / access the mounted disks ? Then, one could reduce the number of puppy disk icons at the bottom left of the screen to one (the essential minimum). Users of smaller screens (eee computers, etc.) may find this handy.
Code: Select all
#!/bin/sh
## show filesystems that are mounted on /mnt with aemenu
## aragon, 2010.01.14
## variables
mntmenu="/tmp/aemenu-drives" #name of menu-file
## some possibilities to look for mounted filesystems in /mnt
##
## 1. looks for non empty directories under /mnt
## fast but fails if drive is mounted but empty
## shows all directories either it is a mounted filesystem or not
## mounts=`find /mnt -mindepth 1 -maxdepth 1 -type d -follow ! -empty`
#
## 2. use mount to show filesystems that are mounted on /mnt
## seems correct but is lame.
## shows only mounted filesystems
## mounts=`mount -l | cut -d " " -f3 | grep ^\/mnt\/`
#
## 3. use df to look for filesystems that are mounted on /mnt
## seems correct but is lame (not as lame as 2)
## shows only mounted filesystems
## mounts=`df | tr -s " " | cut -d " " -f6 | grep ^\/mnt\/`
#
## 4. use /etc/mtab to look for filesystems that are mounted on /mnt
## seems correct and is not as lame as 2 and 3
## shows only mounted filesystems
mounts=`cat /etc/mtab | cut -d " " -f2 | grep ^\/mnt\/`
## create the menu-file
echo "menu "Drives"" > $mntmenu
for i in $mounts
do
echo "cmd "$i" "rox $i"" >> $mntmenu
done
echo "end" >> $mntmenu
## launch the aemenu with the menu-file
aemenu -rc $mntmenu &
Code: Select all
mount -a
Code: Select all
#!/bin/sh
# ajouts de musher0 :
mount -a
cd /root/my-applications/ae
# Ajouté aussi "|sort" à la fin des commandes et
# modifié ancienne destination dans /tmp à la présente
# (musher0)
## show filesystems that are mounted on /mnt with aemenu
## aragon, 2010.01.14
## variables
mntmenu="/root/my-applications/ae/aemenu-drives" #name of menu-file
## some possibilities to look for mounted filesystems in /mnt
##
## 1. looks for non empty directories under /mnt
## fast but fails if drive is mounted but empty
## shows all directories either it is a mounted filesystem or not
mounts=`find /mnt -mindepth 1 -maxdepth 1 -type d -follow ! -empty |sort`
#
## Trois autres solutions non probantes, selon moi, retirées
## create the menu-file
# echo "menu \"Drives\"" > $mntmenu
echo menu "\""-=-Lecteurs/Drives-=-"\"" > $mntmenu
echo cmd "\""-=-=-=-=-=-"\"" "\"" "\"" >> $mntmenu
# disques30
for i in $mounts
do
echo "cmd \"$i\" \"rox $i\"" >> $mntmenu
done
# echo "end" >> $mntmenu (retrait par musher0)
# concaténation par musher0
echo cmd "\"""\("Si montés / If mounted"\)" "\"" "\"" "\"" >disques30
echo "end" >>disques30
sleep 1s
cd /root/my-applications/ae
more aemenu-drives >disques3
# $mounts
more disques30 >> disques3
more disques3-statique.txt >>disques3
echo "#""#""#" fin "#""#""#" >>disques3
## launch the aemenu with the menu-file
aemenu -rc disques3 &
Code: Select all
#!/bin/sh
# menu "disques"
# script disques3.sh pour aemenu
# musher0, 26 déc. 2009 et 14 janv. 2010
# killall aemenu & # parfois nécessaire / sometimes necessary
cd ~/my-applications/ae/
aemenu -rc disques3
thanks, seeing the answer i thought "what a dumb question"dejan555 wrote:i put command in script and place it in rox panel (first icon)
this has bugged me for some time, but finding a solution for the sorting in perl needed time with google...musher0 wrote:A little but noticeable improvement! Thanks!