Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fluxbox Menu Icons

OK.. so I decided that the automenu idea was a terrible solution.. so I wrote a script that should fix it up for you :)


Right... so lets begin..


Make a file ~/.fluxbox/iconmmap (TWO M's!)



The item on the left of the : is the text (inside the brackets in the menufile) that you see on the output of fluxbox. So if you see "hello there" then thats what you need. The stuff on the right of the : is the path to the icon you want alongside the text. Simple enough?


Once you have that in place.. you can run my script:



for item in `cat ~/.fluxbox/iconmmap`
text=`echo $item | cut -d':' -f1`
icon=`echo $item | cut -d':' -f2`

sed -i "/(${text})/s@}.*@} <${icon}>@" ~/.fluxbox/menu


Put this in ~/bin. I called mine fluxbox-iconmmap which made sense to me :P Make sure to chmod the file to be executable.


After this you can run:

fluxbox-generate_menu && flubox-iconmmap


The first will build the menu, the second will add your choice of icons to the menu entries !


woot :)


Forum Jump:

Users browsing this thread: 1 Guest(s)