Menu Pipes in IceWM

How to do things, solutions, recipes, tutorials
Post Reply
Message
Author
User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

Menu Pipes in IceWM

#1 Post by RSH »

Similar to what I've posted for Fluxbox a Menu Pipe can easily be done in IceWM.

Example for a static menu category:

Code: Select all

menu "Places (Rox Bookmarks)" /usr/local/lib/X11/pixmaps/drive48.png {
prog "/" /usr/local/lib/X11/pixmaps/folder48.png rox "/"
prog "/etc" /usr/local/lib/X11/pixmaps/folder48.png rox "/etc"
prog "/etc/xdg" /usr/local/lib/X11/pixmaps/folder48.png rox "/etc/xdg"
prog "/mnt" /usr/local/lib/X11/pixmaps/folder48.png rox "/mnt"
prog "/root" /usr/local/lib/X11/pixmaps/folder48.png rox "/root"
prog "/root/.config" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.config"
prog "/root/.fluxbox" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.fluxbox"
prog "/root/.icewm" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.icewm"
prog "/root/.jwm" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.jwm"
prog "/root/.lazy528" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.lazy528"
prog "/root/.my-sfs-scripts" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.my-sfs-scripts"
prog "/root/.packages" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.packages"
prog "/root/.wbarstuff" /usr/local/lib/X11/pixmaps/folder48.png rox "/root/.wbarstuff"
prog "/tmp" /usr/local/lib/X11/pixmaps/folder48.png rox "/tmp"
prog "/usr" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr"
prog "/usr/bin" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/bin"
prog "/usr/lib" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/lib"
prog "/usr/local" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/local"
prog "/usr/local/apps" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/local/apps"
prog "/usr/local/bin" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/local/bin"
prog "/usr/local/lib/X11" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/local/lib/X11"
prog "/usr/sbin" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/sbin"
prog "/usr/sbin/ceelab" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/sbin/ceelab"
prog "/usr/share" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share"
prog "/usr/share/applications" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/applications"
prog "/usr/share/audio" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/audio"
prog "/usr/share/audio-themes" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/audio-themes"
prog "/usr/share/backgrounds" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/backgrounds"
prog "/usr/share/desktop-directories" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/desktop-directories"
prog "/usr/share/doc" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/doc"
prog "/usr/share/icons" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/icons"
prog "/usr/share/pixmaps" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/share/pixmaps"
prog "/usr/X11R7/bin" /usr/local/lib/X11/pixmaps/folder48.png rox "/usr/X11R7/bin"
}
Example for code to add to the file /etc/xdg/templates/_root_.icewm_menu:

Code: Select all

include /root/.places_icewm_submenu
To have a pipe -let's say for some scripts in /mnt/sda1/my-scripts- one just would need to write a little script that reads the directory /mnt/sda1/my-scripts and would echo its input (output of reading) in a modified form like this:

Code: Select all

prog "Entry-Title-here" Path-and-or-Icon-Name-Here Path-and-Script-here
That's it.
I'm using Menu Pipes heavily in my LazY Puppy builds, but almost used in Openbox, which uses real Menu Pipes, that are updated immediately when opening the Menu.

Currently I'm creating such feature for JWM in L.A.S.S.I.E., but statically like this one here, that needs to be updated manually. To have a static Menu Pipe to be updated manually is the way I do prefer now, since there is a lot of Scripts, RoxApps and PortableApps for Linux and Wine included in my external Application directories, so the real Openbox Menu Pipes do take sometimes 1 or 2 seconds to give access to the menu category.

Since the content of these directories doesn't change very often, it's not really needed to update those Menu Pipes each time when opening the Menu. That's why I prefer the "static-pipes" now.
I have already converted my Openbox Menu Pipes for the use in JWM and Fluxbox. Now I'm doing this for IceWM.

Sorry, no Image this time...

RSH
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

User avatar
RSH
Posts: 2397
Joined: Mon 05 Sep 2011, 14:21
Location: Germany

#2 Post by RSH »

I have already converted my Openbox Menu Pipes for the use in JWM and Fluxbox. Now I'm doing this for IceWM.
Done!

Image
[b][url=http://lazy-puppy.weebly.com]LazY Puppy[/url][/b]
[b][url=http://rshs-dna.weebly.com]RSH's DNA[/url][/b]
[url=http://murga-linux.com/puppy/viewtopic.php?t=91422][b]SARA B.[/b][/url]

Post Reply