Manjaro Linux Forum

Support for Community Editions => Others => Fluxbox => Topic started by: oberon on 13. October 2015, 22:15:17

Title: New fluxboxmenu
Post by: oberon on 13. October 2015, 22:15:17
Here comes what I think is quite a good solution for the fluxbox menu.
I will see how I can make this available as a package, too.
For now you can adjust it manually by replacing the content of ~/.config/fbmenugen/config.pl with THIS (https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/fluxbox/fluxbox-overlay/etc/skel/.config/fbmenugen/config.pl)
and the content of ~/.config/fbmenugen/schema.pl with THIS (https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/fluxbox/fluxbox-overlay/etc/skel/.config/fbmenugen/schema.pl) :o ;D

At this point: If you currently have a menu that you like, back up your ~/.fluxbox/menu because it is now going to be overwritten!!

To create the new menu just run
Code: [Select]
fbmenugen in the terminal or from your existing menu... ;)
The 'Regenerate menu' function can now be found in 'Fluxbox Settings' in the Menu.

(http://imgur.com/vCqkTFFl.png)

Good luck!! 8)
Title: Re: New fluxboxmenu
Post by: MrRoberts on 13. October 2015, 23:13:30
OMG... you rock, oberon!  :)

Thanks again.
Title: Re: New fluxboxmenu
Post by: MrRoberts on 14. October 2015, 00:01:21
In this new menu, I cannot find the theme changer and manjaro settings?
Title: Re: New fluxboxmenu
Post by: oberon on 14. October 2015, 00:11:28
The Settings Manager issue I had just discovered myself. I have fixed it meanwhile ;)
Open your ~/.config/fbmenugen/config.pl and in line 86 where it says 'manjaro-settings-manager' append '-gtk', so the result looks like this:
Code: [Select]
{key => 'Exec', re => qr/^clipit|manjaro-settings-manager-gtk|lightdm-gtk-greeter-settings/},Then regenerate the menu again and Manjaro Settings Manager will show under >Tools>Settings.
Your gtk- and xcursor-theme selector (lxappearance) is now under >Customization>Appearance :)
Title: Re: New fluxboxmenu
Post by: MrRoberts on 14. October 2015, 00:25:37
Getting close! lol  ;D

Now, I'm getting manjaro-settings-manager twice in the menu.

The theme changer I mentioned... I meant the fluxbox theme changer, which isn't there.
Title: Re: New fluxboxmenu
Post by: oberon on 14. October 2015, 01:21:12
Now, I'm getting manjaro-settings-manager twice in the menu.
You must have a typo in your config.pl - just copy it again from here (https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/fluxbox/fluxbox-overlay/etc/skel/.config/fbmenugen/config.pl) It is updated meanwhile. Here on my system it works and I get only one Settings Manager entry.
Quote
The theme changer I mentioned... I meant the fluxbox theme changer, which isn't there.
Hmmm, I don't like that menu entry, because practically all of those offered styles mess up the layout completely >:(
But if you want it you can add this in the schema.pl file, maybe just below the line where it says 'Behaviour'?:
Code: [Select]
  {begin_cat => ['Styles', ]},
    {raw => q([stylesdir] (/usr/share/fluxbox/styles/))},
  {end_cat => undef},
Title: Re: New fluxboxmenu
Post by: oberon on 14. October 2015, 02:29:01
Beh, my bad! The settings-manager entry needs to go in skip_filename_re instead of skip_entry ::)
So like THIS (https://github.com/manjaro/manjaro-tools-iso-profiles/blob/master/fluxbox/fluxbox-overlay/etc/skel/.config/fbmenugen/config.pl#L88)
 ^-^
Title: Re: New fluxboxmenu
Post by: MrRoberts on 14. October 2015, 11:01:52
Code: [Select]
[neo@helion-8930g ~]$ fbmenugen
Bareword found where operator expected at /home/neo/.config/fbmenugen/config.pl line 5, near ""en" class"
(Missing operator before class?)
Bareword found where operator expected at /home/neo/.config/fbmenugen/config.pl line 13, near "<title>manjaro"
(Missing operator before manjaro?)
Unrecognized character \xC2; marked by <-- HERE after at master <-- HERE near column 59 at /home/neo/.config/fbmenugen/config.pl line 13.
Compilation failed in require at /home/neo/.config/fbmenugen/schema.pl line 28.
Compilation failed in require at /usr/bin/fbmenugen line 270.
[neo@helion-8930g ~]$

Did replaced the config.pl and attempted to run fbmenugen with no luck.
Title: Re: New fluxboxmenu
Post by: MrRoberts on 14. October 2015, 11:09:14
Went back to your original config.pl fine and works fine.
Title: Re: New fluxboxmenu
Post by: oberon on 14. October 2015, 13:45:04
With 'original' you mean the one now on github that I linked? For me this works without problem.
Are you still experiencing problems?
The new version will be available as a package tonight...
Title: Re: New fluxboxmenu
Post by: oberon on 15. October 2015, 00:40:26
You can now install the new menu with
Code: [Select]
sudo pacman -S fbmenu-manjaroTo initialize it (and backup your existing menu) you have to run fbmenu (see here (https://forum.manjaro.org/index.php?topic=27308.msg229982#msg229982))

(https://manjaro.github.io/images/fluxbox-menus.jpg)

Enjoy! 8)
Title: Re: New fluxboxmenu
Post by: Steerpike on 15. October 2015, 02:36:33
New to this distro, and I'm enjoying it (just installed yesterday).

When I try to run either "sudo pacman -S fbmenu-manjaro" or just "fbmenu" I get an error saying "target not found" in the first situation, and "command not found" for fbmenu.

Thoughts?
Title: Re: New fluxboxmenu
Post by: lightbeam on 15. October 2015, 03:59:30
You must have a typo in your config.pl - just copy it again from here (https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/fluxbox/fluxbox-overlay/etc/skel/.config/fbmenugen/config.pl) It is updated meanwhile. Here on my system it works and I get only one Settings Manager entry.

If you and MrRoberts were to check in /usr/share/applications/ I think you might find that there are two Manajaro Settings Manager application launchers - of different sizes - located there.  On my system, Manjaro Openbox, two are installed after every update.  I'm not sure why, but I think one is GTK2 and the other is GTK3+.  However, that's just a guess.  I simply delete one every time after the application gets an update.  The menu then updates to reflect that.
Title: Re: New fluxboxmenu
Post by: Steerpike on 15. October 2015, 04:39:52
New to this distro, and I'm enjoying it (just installed yesterday).

When I try to run either "sudo pacman -S fbmenu-manjaro" or just "fbmenu" I get an error saying "target not found" in the first situation, and "command not found" for fbmenu.

Thoughts?

Nevermind, guys. A reboot fixed this. Not sure what the issue was, but the commands work fine now.
Title: Re: New fluxboxmenu
Post by: MrRoberts on 15. October 2015, 10:36:39
Hi. Followed your update and the menu is working fine now.  :D
Title: Re: New fluxboxmenu
Post by: oberon on 15. October 2015, 11:07:20
If you and MrRoberts were to check in /usr/share/applications/ I think you might find that there are two Manajaro Settings Manager application launchers - of different sizes - located there.
Yes exactly, lightbeam! That's why I added "-gtk" in order to exclude one of them.
One of the two files is called manjaro-settings-manager.desktop and the other one manjaro-settings-manager-gtk.desktop.
So now the new config skips the ony with -gtk and only lists one in the menu 8)
Title: Re: New fluxboxmenu
Post by: oberon on 15. October 2015, 11:09:13
Hi. Followed your update and the menu is working fine now.  :D
Oh, great that it is working now! ::) phew ;D
Title: Re: New fluxboxmenu
Post by: oberon on 15. October 2015, 14:03:39
A little update to the update. The install script of fbmenu-manjaro will now backup your existing menu and fbmenugen config, then install the new menu and update it automatically with your already present applications.
It's now no longer necessary to run that script after installation.
For future software additions you will just have to run the menu entry Fluxbox Settings>Regenerate menu manually :)
Title: Re: New fluxboxmenu
Post by: decent on 08. November 2015, 09:20:17
Hi,
https://wiki.archlinux.org/index.php/Fluxbox#Theming

-Can be add if it like-

Menu line(s) for menu menu:

(http://storage9.static.itmages.com/i/15/1108/s_1446970809_6871607_7d1fb1134b.jpg) (http://itmages.com/image/view/3178040/7d1fb113)
Title: Re: New fluxboxmenu
Post by: emninger on 21. April 2016, 17:47:56
Here comes what I think is quite a good solution for the fluxbox menu.
I will see how I can make this available as a package, too.
For now you can adjust it manually by replacing the content of ~/.config/fbmenugen/config.pl with THIS (https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/fluxbox/fluxbox-overlay/etc/skel/.config/fbmenugen/config.pl)
and the content of ~/.config/fbmenugen/schema.pl with THIS (https://raw.githubusercontent.com/manjaro/manjaro-tools-iso-profiles/master/fluxbox/fluxbox-overlay/etc/skel/.config/fbmenugen/schema.pl) :o ;D

At this point: If you currently have a menu that you like, back up your ~/.fluxbox/menu because it is now going to be overwritten!!

To create the new menu just run
Code: [Select]
fbmenugen in the terminal or from your existing menu... ;)
The 'Regenerate menu' function can now be found in 'Fluxbox Settings' in the Menu.

(http://imgur.com/vCqkTFFl.png)

Good luck!! 8)

I'm new here ... so sorry if this is already asked: This menu generator is the same that the slackware based Salix Fluxbos edition uses, i think (?).

It would be nice if the fluxbox would support icons. You can build some on your own, activating this option for the build, but it would be nice as default.

In any case, this desktop esthetically is really amazing! My compliments.
Title: Re: New fluxboxmenu
Post by: eugen-b on 21. April 2016, 17:56:12
@emninger, read this topic of mine https://forum.manjaro.org/index.php?topic=29245.0
Don't know about Salix, the menu generator is fbmenugen.
Title: Re: New fluxboxmenu
Post by: emninger on 21. April 2016, 20:51:06
@emninger, read this topic of mine https://forum.manjaro.org/index.php?topic=29245.0
Don't know about Salix, the menu generator is fbmenugen.

Ok, i do not know if it's hurt the rules here but in Salix there was a thread about how to build a fluxbox with full icon support: https://forum.salixos.org/viewtopic.php?f=16&t=6269&hilit=fluxbox+menu+icon May be it's of interest for you.