Page 1 of 7

mxfb2025: Menus

Posted: Fri Jan 24, 2025 9:46 am
by Jerry3904
I want to start this topic b/c I believe we can settle it by the end of the month (a week from today) and it would be nice to have a "Solved" flag to get us started down the right path. I will concentrate on the root menu (=RM) since it looks to me like we reached a consensus on rofi and "all apps" (which @dolphin_oracle has nicely reconfigured).

My guide in setting up the RM from the very beginning was this line in man fluxbox (numbers added):
The root menu is where you can 1) launch commonly-used applications, and 2) change different aspects of fluxbox by simply clicking on a menu item.
Those two components are clearly set off in our current RM with a horizontal line; we have added "all apps" and "recent files" on top--though I'm not totally persuaded about "recent files" occupying such a position and would prefer to see it gain a desktop file to become available through the terminal, a key or rofi.

The middle section is the one needing attention this cycle, and we saw a number of good suggestions. By the end of today I intend to post for discussion a reconfiguration of that middle section making use of posts in the initial development thread.

Re: mxfb2025: Menus

Posted: Fri Jan 24, 2025 10:21 am
by dolphin_oracle
a suggestion for the Terminal entry , if it remains on the top level root menu: use x-terminal-emulator rather than a specific terminal, which may or may not be installed.

Re: mxfb2025: Menus

Posted: Fri Jan 24, 2025 10:26 am
by Jerry3904
Good one, thanks.

Re: mxfb2025: Menus

Posted: Fri Jan 24, 2025 5:02 pm
by Jerry3904
OK, here's a revised menu for discussion (haven't actually run it yet so there may be a syntax problems)

Code: Select all

#the default versions of the submenus are located in /usr/share/mxflux/menu

[begin] (MX Fluxbox)
   [submenu] (All Apps)
        [include] (~/.fluxbox/submenus/full_menu)
        [separator]
        [exec] (Update)  {/usr/bin/mxfb-menu-generator}
        [exec] (Disable) {mx-tweak --other}
   [end]
	[separator]
    [exec] (Browser) {sensible-browser}
    [exec] (File manager) {exo-open $HOME/.fluxbox} 
    [exec] (Help) {mxfb-help}
    [submenu] (Multimedia)
    	[exec] (Music) {deadbeef}
    	[exec] (Xkcd) {bl-xkcd}
        [end]
    [submenu] (Other)
    	[submenu] (Recent files) 
		[include] (~/.fluxbox/submenus/recent_files_menu)
		[separator]
		[exec] (Update) {~/.fluxbox/scripts/recentfiles-fbmenu}
	[end]
	[exec] (Weather) {mxfb-simple-weather}
	[end]
    [exec] (Run) {mxfb-rofirun}
    [exec] (MX Fluxbox tools) {custom-toolbox /etc/custom-toolbox/mxfb-settings.list} 
    [exec] (Terminal) {x-terminal-emulator} 
    [separator]
    [submenu] (Appearance)
    [include] (~/.fluxbox/submenus/appearance)
    [end]
    [submenu] (Settings)
    [include] (~/.fluxbox/submenus/settings)
    [end]
    [submenu] (Out of sight)
        [include] (~/.fluxbox/submenus/out-of-sight)
    [end]
    [submenu] (Leave)
        [exec] (Refresh) {fluxbox-remote restart; idesktoggle idesk refresh } 
        [exec] (Suspend) {sudo 'pm-suspend'}
        [exec] (Lock) {dm-tool switch-to-greeter}
        [exit] (Logout) 
        [exec] (Reboot) {sudo /sbin/reboot} 
        [exec] (Shutdown) {sudo /sbin/halt}
    [end]
[end]
NOTES
1. I moved recent files out of the top level: really don't believe it belongs there
2. Followed @siamhie suggestions about categories: "Multimedia" instead of "Music," adding a useful "Other"
3. I followed DO's suggestion; I had introduced a different terminal b/c xfce4-terminal refused to be moved to the center AFAIK, but now giving up on that
4. Removed the window decoration entries, don't think anyone is likely to be interested and it's always in all apps
5. I added "Lock" to the Leave category
6. I'm ignoring for the moment the suggestion to change a couple of apps

Re: mxfb2025: Menus

Posted: Sat Jan 25, 2025 8:11 am
by Jerry3904
BTW: haven't touched the "included" menus (~/.fluxbox/submenus), which seem to me to be pretty well set up and working well.

Re: mxfb2025: Menus

Posted: Sat Jan 25, 2025 11:09 am
by Jerry3904
The two current entries under Extras:

Code: Select all

[submenu] (Window options)
    	   	[Exec] (Border) {mxfb-borders}
    		[Exec] (Titlebar) {mxfb-top}

Re: mxfb2025: Menus

Posted: Sat Jan 25, 2025 11:14 am
by siamhie
Jerry3904 wrote: Sat Jan 25, 2025 11:09 am The two current entries under Extras:

Code: Select all

[submenu] (Window options)
    	   	[Exec] (Border) {mxfb-borders}
    		[Exec] (Titlebar) {mxfb-top}

I keep forgetting about that menu as I always edit my init file by hand. I'll blame that on my muscle memory. :rofl:

Re: mxfb2025: Menus

Posted: Sat Jan 25, 2025 11:17 am
by Jerry3904
Are you otherwise good with the proposed changes?

Re: mxfb2025: Menus

Posted: Sat Jan 25, 2025 11:21 am
by siamhie
Jerry3904 wrote: Sat Jan 25, 2025 11:17 am Are you otherwise good with the proposed changes?
Yes I am. You are good to go. Trim away the excess.

Re: mxfb2025: Menus

Posted: Sat Jan 25, 2025 2:54 pm
by Jerry3904
OK, closing Root Menu discussion (though still open to comment).

Second and last menu topic: mxfb-appfinder.rasi and its settings.

--There was a short discussion about adding the exit options and a nice image from @Melber of how it would look. Do we want to go ahead with this?
--Are there any other changes to the menu we want to consider? @kobaian ?