YORIK’S COFFEE CORNER

You are currently viewing a single post of this guestblog.

Click here to go back the complete page. I would be glad to hear your comments, so don’t hesitate to leave me your feedback below. It will appear on the main guestblog page.


in categories  opensource  linux  permalink:  155   posted on 27.10.2015 2:14
From Yorik

Dynamic menu for fluxbox





A little note to self inspired by this article. A quick way to add dynamic menus in fluxbox, for example to emulate that openbox pipe menus thingy that shows all your directories tree inside a menu...

First you have a script like this, that creates/updates a text file containing a fluxbox submenu:

echo "[submenu] (Works) {} " > 
    /home/yorik/.fluxbox/works
find / -maxdepth 1 -mindepth 1 -type d -exec basename {} \; | awk '{ printf "[exec] ("$0") {pcmanfm 
    \"/home/yorik/"$0"\"} \n"}' >> /home/yorik/.fluxbox/works
echo "[end]" >> /home/yorik/.fluxbox/works


Then in your fluxbox menu:

[include] (/home/yorik/.fluxbox/works)


Then you need to run the first script from time to time, for example adding it to your crontab. The apps are filled by the excellent xdgmenumaker...

First and foremost, your name:

And your message:

To publish it, just press this ...