Author Topic: Fluxbox menu customization and regeneration [SOLVED]  (Read 1621 times)

0 Members and 1 Guest are viewing this topic.

Offline Losgann

  • Neuling
  • *
  • Posts: 41
  • Branch: Stable
  • Desktop: XFCE, Fluxbox
  • GPU Card: Intel
  • GPU driver: Intel
  • Kernel: 4.1.15-1-MANJARO
  • Skill: Intermediate
Fluxbox menu customization and regeneration [SOLVED]
« on: 07. January 2016, 16:57:52 »
Hello, I've been playing around with the Fluxbox edition and I found that when I download new applications, I have to go to Fluxbox Settings > Regenerate Menu in order to have them show up in the menu (apart from manually adding an exec command to ~/.fluxbox/menu). However, when I regenerate the menu, while the new applications now appear, any other customizations I've made to ~/.fluxbox/menu disappear. Is there any way to keep my changes/additions when regenerating?
« Last Edit: 09. January 2016, 21:26:05 by Losgann »

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration
« Reply #1 on: 07. January 2016, 17:06:51 »
Yes, there is a way. Take a close look at the files in ~/.config/fbmenugen
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline Losgann

  • Neuling
  • *
  • Posts: 41
  • Branch: Stable
  • Desktop: XFCE, Fluxbox
  • GPU Card: Intel
  • GPU driver: Intel
  • Kernel: 4.1.15-1-MANJARO
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration [SOLVED]
« Reply #2 on: 09. January 2016, 20:18:05 »
Ah. Thank you for that. I was able to edit ~/.config/fbmenugen/schema.pl to add what I wanted to the menu when it is regenerated. Mind you, I was just copying other lines in the file, and added a bunch of lines that were basically all "{raw => q(......)}," with Fluxbox menu commands inbetween the parentheses, and I have no idea what all the Perl code means nor any idea how it works... but I got the result I wanted!

I'm pretty new to Fluxbox (though I've used Openbox some, I've largely been a diehard XFCE guy for years) but I am really enjoying playing around with this release. Like, wanting to keep using it enjoying. Why'd you guys have to go and mess up my comfy lifestyle by making such cool stuff?  ;)

Offline oberon

  • Core Team
  • *****
  • Posts: 3858
  • I'm nice. Be new!
  • Branch: unstable
  • Desktop: i3, Deepin, Cinnamon
  • GPU Card: Intel ValleyView Gen7
  • GPU driver: Intel
  • Kernel: 4.1 / 4.4
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration
« Reply #3 on: 09. January 2016, 20:27:34 »
;D
We all need our toys... ::)
manjaro is addictive ::)
* manjaro-i3  * manjaro-cinnamon  * manjaro-deepin

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration
« Reply #4 on: 09. January 2016, 20:30:11 »
When you get bored with what you achieved with Fluxbox menu, take a look at my thread about icons in Fluxbox menu. ;)
And good, that a hint from was enough! (Explaining in full detail can be tiresome.)
« Last Edit: 09. January 2016, 20:34:32 by eugen-b »
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline mips

  • Held Mitglied
  • *****
  • Posts: 2892
  • Valkyrja
  • Branch: Testing
  • Desktop: XFCE
  • GPU Card: GTX 960
  • GPU driver: video-nvidia
  • Kernel: 3.16
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration [SOLVED]
« Reply #5 on: 09. January 2016, 21:42:04 »
Here's my take on menus with WMs, avoid dynamic menus as they slow things down & add crap to your menus. My scenario might be different from the normal use case but I stick to static menus which are very fast, gives you no surprises and represent exactly what you want.

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration [SOLVED]
« Reply #6 on: 09. January 2016, 22:05:31 »
I have a similar opinion as mips. I use fbmenugen (and obmenu-generator) to generate static menus only. Dynamic menus would be useful if you install the system for s.o. else who does not understand how to run the menu generator.
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/

Offline Losgann

  • Neuling
  • *
  • Posts: 41
  • Branch: Stable
  • Desktop: XFCE, Fluxbox
  • GPU Card: Intel
  • GPU driver: Intel
  • Kernel: 4.1.15-1-MANJARO
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration [SOLVED]
« Reply #7 on: 10. January 2016, 22:34:04 »
I'm assuming from the name that dynamic menus automatically update on the fly as new stuff is added, as opposed to having to manually add menu items or run a script to reconfigure the menu? If that's the case I think Manjaro Fluxbox is set up well as it is. It's a nice balance between being able to go in and customize the bits you want to (now that I know how) and being able to click a menu option to have software you've installed added to the menu without having to go hunting for it.

Offline Losgann

  • Neuling
  • *
  • Posts: 41
  • Branch: Stable
  • Desktop: XFCE, Fluxbox
  • GPU Card: Intel
  • GPU driver: Intel
  • Kernel: 4.1.15-1-MANJARO
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration
« Reply #8 on: 10. January 2016, 22:34:57 »
;D
We all need our toys... ::)
I'm hooked, dude. I blame you.  ;)

Offline eugen-b

  • Support Team
  • ****
  • Posts: 3191
  • Branch: testing
  • Desktop: LXDE, Fluxbox, JWM, LXQt, bspwm
  • GPU Card: Intel 82945G/GZ
  • GPU driver: free
  • Kernel: 4.5, 4.6
  • Skill: Intermediate
Re: Fluxbox menu customization and regeneration [SOLVED]
« Reply #9 on: 10. January 2016, 22:39:31 »
I'm assuming from the name that dynamic menus automatically update on the fly as new stuff is added, as opposed to having to manually add menu items or run a script to reconfigure the menu? If that's the case I think Manjaro Fluxbox is set up well as it is. It's a nice balance between being able to go in and customize the bits you want to (now that I know how) and being able to click a menu option to have software you've installed added to the menu without having to go hunting for it.
Run fbmenugen -h in terminal and you will get part of the answer. A static menu has a file ~/.fluxbox/menu which is full of lines with structure like <command> <name> <icon>. This menu won't update if you install a new application. You will need to run fbmenugen.
How a dynamic menu looks like you can probably see in your ~/.fluxbox/menu
I don't see Manjaro's Fluxbox being technically much different from say antiX fluxbox. :P But it definitely has a better look! 8) O:-) Though it starts with 120MB more RAM. :P
« Last Edit: 10. January 2016, 22:42:19 by eugen-b »
MSI Wind Nettop, Intel Atom 230 1.6GHz (64bit), 2GB RAM
DEs: NET-minimal + (LXDE / Fluxbox / JWM); LXQt OpenRC
how to install on btrfs subvolumes
http://manjaro.github.io/donate/