Sharon Kimble
2013-11-24 19:31:08 UTC
I've written this script that will generate the fluxbox menu for you
which includes your usermenu automatically, but it does have a
requirement of 'menumaker-0.99.7.tar.gz', which is in the /programmes
directory of my git repo. Here it is -
#!/bin/bash
#: Title : mengen
#: Date : November 2013
#: Author : Sharon Kimble
#: Version : 1.0
#: Description : to generate fluxbox menu plus
your usermenu too
#: Options : none
#: Requirements : menumaker-0.99.7.tar.gz, in
the /programmes directory
#: License : GNU GPL 3.0 or later
####################################################
# Change log
# * 23-11-13 - Initial release
###################################################
mv ~/.fluxbox/menu{,-$(date +%Y%m%d-%R)}; mmaker fluxbox -f; perl -0777
-pi -e 's/(.*)\[end]/$1/s;s/(.*)\[end]/$1/s;s/^\s*\n//gm'
~/.fluxbox/menu; printf '\t[end]\n\t[separator]\n\t[submenu] (My
Menu)\n\t[include] (~/.fluxbox/usermenu)\n\t[end]\n\t[end]'
menu, which you can delete if you donât want to keep it.
I hope its useful for you? Any ideas for enhancement gratefully
accepted.
Thanks
Sharon.
which includes your usermenu automatically, but it does have a
requirement of 'menumaker-0.99.7.tar.gz', which is in the /programmes
directory of my git repo. Here it is -
#!/bin/bash
#: Title : mengen
#: Date : November 2013
#: Author : Sharon Kimble
#: Version : 1.0
#: Description : to generate fluxbox menu plus
your usermenu too
#: Options : none
#: Requirements : menumaker-0.99.7.tar.gz, in
the /programmes directory
#: License : GNU GPL 3.0 or later
####################################################
# Change log
# * 23-11-13 - Initial release
###################################################
mv ~/.fluxbox/menu{,-$(date +%Y%m%d-%R)}; mmaker fluxbox -f; perl -0777
-pi -e 's/(.*)\[end]/$1/s;s/(.*)\[end]/$1/s;s/^\s*\n//gm'
~/.fluxbox/menu; printf '\t[end]\n\t[separator]\n\t[submenu] (My
Menu)\n\t[include] (~/.fluxbox/usermenu)\n\t[end]\n\t[end]'
~/.fluxbox/menu
As you can see it saves a backup dated copy of your current fluxboxmenu, which you can delete if you donât want to keep it.
I hope its useful for you? Any ideas for enhancement gratefully
accepted.
Thanks
Sharon.
--
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
my git repo = https://bitbucket.org/boudiccas/dots
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.3.2
Registered Linux user 561944