mxfb2025: Menus

Help for MX Fluxbox
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
AA BB
Posts: 373
Joined: Mon Nov 11, 2019 10:49 pm

Re: mxfb2025: Menus

#71 Post by AA BB »

dolphin_oracle wrote: Thu Aug 07, 2025 8:05 am probably worth posting the

Code: Select all

$HOME/.fluxbox/submenus/full_menu
file.

Code: Select all

[begin] (All Apps)
[submenu] (Accessories)
x (Archive Manager ) { file-roller  } Categories=GTK;GNOME;Utility;Archiving;Compression;X-GNOME-Utilities;
x (Bulk Rename ) { thunar --bulk-rename  } Categories=Utility;Core;GTK;Filesystem;
x (Catfish File Search ) { catfish  } Categories=GNOME;GTK;Utility;
x (compton ) { compton } Categories=Utility;
x (Conky Manager ) { conky-manager2 } Categories=Utility
x (Conky Toggle ) { conkytoggle.sh } Categories=Utility;System;
x (FeatherPad ) { featherpad  } Categories=Qt;Utility;TextEditor;
x (Galculator ) { galculator } Categories=Utility;
x (GtkHash ) { gtkhash  } Categories=Utility;Security;GTK;
x (Hardinfo2 ) { hardinfo2 } Categories=System;Utility;
x (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec } Categories=GNOME;GTK;Settings;System;Utility;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
x (Magnus ) { magnus } Categories=Utility;Accessibility;
x (MX Updater ) { /usr/bin/apt-notifier-unhide-Icon } Categories=System;Qt;KDE;Utility;X-KDE-Utilities-Desktop;
x (nitrogen ) { nitrogen } Categories=Utility;GTK;DesktopSettings;
x (Onboard ) { onboard } Categories=Utility;Accessibility;
x (Passwords and Keys ) { seahorse  } Categories=GNOME;GTK;Security;Utility;DesktopSettings;X-XFCE-SettingsDialog;
x (ROXTerm ) { roxterm } Categories=GTK;Utility;TerminalEmulator;System;
x (Shutter ) { shutter  } Categories=Utility;
x (TeXInfo ) { x-terminal-emulator -e info } Categories=Utility;Documentation;ConsoleOnly;
x (Thunar File Manager ) { thunar  } Categories=System;Utility;Core;GTK;FileTools;FileManager;
x (Touchpad Indicator ) { /usr/bin/touchpad-indicator } Categories=Utility;
x (Vim ) { x-terminal-emulator -e vim  } Categories=Utility;TextEditor;
[end]
[submenu] (Development)
x (Geany ) { geany  } Categories=GTK;Development;IDE;TextEditor;
x (GHex ) { ghex  } Categories=GNOME;GTK;Development;
x (Icon Browser ) { yad-icon-browser } Categories=GTK;Development;
[end]
[submenu] (Graphics)
x (nomacs ) { nomacs  } Categories=Graphics;RasterGraphics;Viewer;2DGraphics;
[end]
[submenu] (Internet)
x (Advanced Network Configuration ) { nm-connection-editor } Categories=GNOME;GTK;Settings;X-GNOME-NetworkSettings;X-GNOME-Utilities;
x (Brave Web Browser ) { /usr/bin/brave-browser-stable  } Categories=Network;WebBrowser;
x (MX Network Assistant ) { mx-network-assistant } Categories=System;MX-Tools;
x (MX Viewer ) { mx-viewer  } Categories=Qt;Network;Utilities;
[end]
[submenu] (Multimedia)
x (Alsamixer ) { x-terminal-emulator -e alsamixer } Categories=AudioVideo;Player;Audio;
x (DeaDBeeF ) { deadbeef  } Categories=Audio;AudioVideo;Player;GTK;
x (guvcview webcam ) { guvcview } Categories=Video;AudioVideo;
x (PulseAudio Volume Control ) { pavucontrol } Categories=AudioVideo;Audio;Mixer;GTK;Settings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;
[end]
[submenu] (MX-Tools)
x (About MX Linux ) { mx-welcome --about } Categories=GNOME;GTK;System;MX-Tools;
x (Bash Config ) { bash-config } Categories=GNOME;GTK;System;X-MX-Tools;
x (Brightness Systray ) { mx-tweak --tray & } Categories=XFCE;Settings;DesktopSettings;MX-Tools;
x (Chroot Rescue Scan ) { x-terminal-emulator -e sudo chroot-rescue-scan --pause } Categories=X-antiX;MX-Tools;
x (Deb Installer ) { deb-installer  } Categories=System;MX-Tools;
x (Disk Manager ) { /usr/bin/disk-manager-launcher } Categories=System;MX-Tools;
x (Format USB ) { formatusb } Categories=System;MX-Tools;X-antiX;
x (Job Scheduler ) { job-scheduler } Categories=System;MX-Tools
x (Live-USB Kernel Updater ) { x-terminal-emulator -e sudo /usr/local/bin/live-kernel-updater --pause } Categories=X-antiX;MX-Tools;
x (MX Boot Options ) { mx-boot-options } Categories=GNOME;GTK;System;MX-Tools
x (MX Boot Repair ) { mx-boot-repair } Categories=System;MX-Tools;
x (MX Cleanup ) { mx-cleanup } Categories=System;MX-Tools
x (MX Conky ) { mx-conky } Categories=GNOME;GTK;System;MX-Tools
x (MX Date & Time ) { mx-datetime } Categories=GNOME;GTK;System;MX-Tools;
x (MX Fix GPG keys ) { x-terminal-emulator -e pkexec checkaptgpg --wait-at-end } Categories=PackageManager;System;MX-Tools;
x (MX Live USB Maker ) { mx-live-usb-maker } Categories=System;MX-Tools;
x (MX Locale ) { mx-locale } Categories=System;MX-Tools;X-antiX;
x (MX Network Assistant ) { mx-network-assistant } Categories=System;MX-Tools;
x (MX Package Installer ) { mx-packageinstaller } Categories=System;MX-Tools;
x (MX RemasterCC ) { mx-remastercc } Categories=GNOME;GTK;System;MX-Tools
x (MX Repo Manager ) { mx-repo-manager } Categories=GNOME;GTK;System;MX-Tools;
x (MX Samba Config ) { mx-samba-config } Categories=System;MX-Tools;
x (MX Select Sound ) { mx-select-sound } Categories=GNOME;GTK;System;MX-Tools
x (MX Service Manager ) { mx-service-manager } Categories=GNOME;GTK;System;MX-Tools;
x (MX Snapshot ) { mx-snapshot } Categories=GNOME;GTK;System;MX-Tools;
x (MX Tour ) { mx-tour } Categories=System;MX-Tools;
x (MX Tweak ) { mx-tweak } Categories=XFCE;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;MX-Tools;
x (MX User Manager ) { mx-user } Categories=System;MX-Tools;
x (MX Welcome ) { mx-welcome } Categories=GNOME;GTK;System;MX-Tools;
x (Nvidia driver installer ) { x-terminal-emulator -e pkexec /usr/bin/ddm-mx -i nvidia } Categories=ConsoleOnly;System;MX-Tools;
x (Papirus Folder Colors ) { papirus-folder-colors } Categories=Settings;MX-Tools;
x (Quick System Info ) { quick-system-info-gui } Categories=System;MX-Tools
x (System Keyboard ) { system-keyboard-qt-launcher } Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;MX-Tools;
x (UEFI Manager ) { uefi-manager } Categories=System;MX-Tools;
x (User Installed Packages ) { user-installed-packages } Categories=System;MX-Tools;
[end]
[submenu] (MXFB-Tools)
x (Appfinder Settings ) { appfinder-settings } Categories=System;X-MXFB-Tools;
x (Backgrounds ) { nitrogen } Categories=System;X-MXFB-Tools;
x (Exit Options Manager ) { exit-options-manager } Categories=System;X-MXFB-Tools;
x (Font ) { mxfb-font } Categories=System;X-MXFB-Tools;
x (Look ) { mxfb-look } Categories=System;X-MXFB-Tools;
x (MX Comfort ) { mxfb-comfort } Categories=System;X-MXFB-Tools;
x (MX Fluxbox Tweaks ) { mx-tweak } Categories=System;X-MXFB-Tools;
x (MX Idesktool ) { mx-idesktool } Categories=System;X-MXFB-Tools;
x (Quickshot ) { mxfb-quickshot } Categories=System;X-MXFB-Tools;
x (Rofi Manager ) { mx-rofi-manager } Categories=System;X-MXFB-Tools;
x (Shortcuts ) { mxfb-keybindings } Categories=System;X-MXFB-Tools;
x (Tint2 Manager ) { /usr/bin/mxfb-tint2-manager } Categories=System;X-MXFB-Tools;
x (Trash check ) { mxfb-trashcheck } Categories=System;X-MXFB-Tools;
[end]
[submenu] (Office)
x (qpdfview ) { qpdfview --unique  } Categories=Viewer;Office;
[end]
[submenu] (System)
x (About MX Linux ) { mx-welcome --about } Categories=GNOME;GTK;System;MX-Tools;
x (Appfinder Settings ) { appfinder-settings } Categories=System;X-MXFB-Tools;
x (Backgrounds ) { nitrogen } Categories=System;X-MXFB-Tools;
x (Bash Config ) { bash-config } Categories=GNOME;GTK;System;X-MX-Tools;
x (Borders ) { mxfb-borders } Categories=System;
x (Conky Toggle ) { conkytoggle.sh } Categories=Utility;System;
x (Custom Toolbox ) { custom-toolbox } Categories=GNOME;GTK;System;
x (dconf Editor ) { dconf-editor } Categories=GNOME;GTK;System;
x (Deb Installer ) { deb-installer  } Categories=System;MX-Tools;
x (Disk Manager ) { /usr/bin/disk-manager-launcher } Categories=System;MX-Tools;
x (Disk Usage Analyzer ) { baobab  } Categories=GTK;GNOME;System;Filesystem;X-GNOME-Utilities;
x (Exit Options Manager ) { exit-options-manager } Categories=System;X-MXFB-Tools;
x (FAQ ) { mx-faq } Categories=System;
x (Firewall Configuration ) { gufw } Categories=GNOME;GTK;Settings;Security;X-GNOME-Settings-Panel;X-GNOME-SystemSettings;X-Unity-Settings-Panel;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
x (Font ) { mxfb-font } Categories=System;X-MXFB-Tools;
x (Format USB ) { formatusb } Categories=System;MX-Tools;X-antiX;
x (GKrellM System Monitor ) { gkrellm } Categories=System;
x (GParted ) { /usr/sbin/gparted  } Categories=GNOME;System;Filesystem;
x (Grsync ) { /usr/bin/grsync -i  } Categories=Application;System;
x (GSmartControl ) { "/usr/bin/gsmartcontrol-root" } Categories=System;Monitor;
x (Hardinfo2 ) { hardinfo2 } Categories=System;Utility;
x (Htop ) { x-terminal-emulator -e htop } Categories=System;Monitor;ConsoleOnly;
x (Job Scheduler ) { job-scheduler } Categories=System;MX-Tools
x (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec } Categories=GNOME;GTK;Settings;System;Utility;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
x (Look ) { mxfb-look } Categories=System;X-MXFB-Tools;
x (Manual ) { mxfb-help } Categories=System;
x (MX Boot Options ) { mx-boot-options } Categories=GNOME;GTK;System;MX-Tools
x (MX Boot Repair ) { mx-boot-repair } Categories=System;MX-Tools;
x (MX Cleanup ) { mx-cleanup } Categories=System;MX-Tools
x (MX Comfort ) { mxfb-comfort } Categories=System;X-MXFB-Tools;
x (MX Conky ) { mx-conky } Categories=GNOME;GTK;System;MX-Tools
x (MX Date & Time ) { mx-datetime } Categories=GNOME;GTK;System;MX-Tools;
x (MX Fix GPG keys ) { x-terminal-emulator -e pkexec checkaptgpg --wait-at-end } Categories=PackageManager;System;MX-Tools;
x (MX Fluxbox Tweaks ) { mx-tweak } Categories=System;X-MXFB-Tools;
x (MX Idesktool ) { mx-idesktool } Categories=System;X-MXFB-Tools;
x (MX Live USB Maker ) { mx-live-usb-maker } Categories=System;MX-Tools;
x (MX Locale ) { mx-locale } Categories=System;MX-Tools;X-antiX;
x (MX Network Assistant ) { mx-network-assistant } Categories=System;MX-Tools;
x (MX Package Installer ) { mx-packageinstaller } Categories=System;MX-Tools;
x (MX RemasterCC ) { mx-remastercc } Categories=GNOME;GTK;System;MX-Tools
x (MX Repo Manager ) { mx-repo-manager } Categories=GNOME;GTK;System;MX-Tools;
x (MX Samba Config ) { mx-samba-config } Categories=System;MX-Tools;
x (MX Select Sound ) { mx-select-sound } Categories=GNOME;GTK;System;MX-Tools
x (MX Service Manager ) { mx-service-manager } Categories=GNOME;GTK;System;MX-Tools;
x (MX Snapshot ) { mx-snapshot } Categories=GNOME;GTK;System;MX-Tools;
x (MX Tour ) { mx-tour } Categories=System;MX-Tools;
x (MX Updater ) { /usr/bin/apt-notifier-unhide-Icon } Categories=System;Qt;KDE;Utility;X-KDE-Utilities-Desktop;
x (MX USB Unmounter ) { mx-usb-unmounter } Categories=System
x (MX User Manager ) { mx-user } Categories=System;MX-Tools;
x (MX User Manual ) { mx-manual } Categories=System;
x (MX Welcome ) { mx-welcome } Categories=GNOME;GTK;System;MX-Tools;
x (Nvidia driver installer ) { x-terminal-emulator -e pkexec /usr/bin/ddm-mx -i nvidia } Categories=ConsoleOnly;System;MX-Tools;
x (Print Settings ) { system-config-printer } Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel;X-Unity-Settings-Panel;System;Printing;
x (Quickshot ) { mxfb-quickshot } Categories=System;X-MXFB-Tools;
x (Quick System Info ) { quick-system-info-gui } Categories=System;MX-Tools
x (Rofi Manager ) { mx-rofi-manager } Categories=System;X-MXFB-Tools;
x (ROXTerm ) { roxterm } Categories=GTK;Utility;TerminalEmulator;System;
x (Screensaver ) { xdg-open /usr/share/doc/mxfb-accessories/help_mxfb-screensaver } Categories=System;
x (Settings Manager ) { custom-toolbox /etc/custom-toolbox/mxfb-settings.list } Categories=GNOME;GTK;System;
x (Shortcuts ) { mxfb-keybindings } Categories=System;X-MXFB-Tools;
x (Synaptic Package Manager ) { synaptic-pkexec } Categories=PackageManager;GTK;System;Settings;
x (System Keyboard ) { system-keyboard-qt-launcher } Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;MX-Tools;
x (Thunar File Manager ) { thunar  } Categories=System;Utility;Core;GTK;FileTools;FileManager;
x (Tint2 Manager ) { /usr/bin/mxfb-tint2-manager } Categories=System;X-MXFB-Tools;
x (Tint2 ) { tint2 } Categories=System;
x (Titlebar ) { mxfb-top } Categories=System;
x (Trash check ) { mxfb-trashcheck } Categories=System;X-MXFB-Tools;
x (UEFI Manager ) { uefi-manager } Categories=System;MX-Tools;
x (User Installed Packages ) { user-installed-packages } Categories=System;MX-Tools;
x (Xfce Terminal ) { xfce4-terminal } Categories=GTK;System;TerminalEmulator;
[end]
[submenu] (Settings)
x (About Me ) { /usr/bin/mugshot } Categories=GNOME;GTK;Settings;X-GNOME-Settings-Panel;X-GNOME-PersonalSettings;DesktopSettings;X-XFCE;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;
x (Adblock ) { su-to-root -X -c block-advert.sh } Categories=Settings;
x (Advanced Network Configuration ) { nm-connection-editor } Categories=GNOME;GTK;Settings;X-GNOME-NetworkSettings;X-GNOME-Utilities;
x (Appfinder Settings ) { appfinder-settings } Categories=System;X-MXFB-Tools;
x (ARandR ) { arandr } Categories=Settings;HardwareSettings;
x (Bluetooth Manager ) { blueman-manager } Categories=GTK;GNOME;Settings;HardwareSettings;
x (Brightness Systray ) { mx-tweak --tray & } Categories=XFCE;Settings;DesktopSettings;MX-Tools;
x (Firewall Configuration ) { gufw } Categories=GNOME;GTK;Settings;Security;X-GNOME-Settings-Panel;X-GNOME-SystemSettings;X-Unity-Settings-Panel;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
x (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec } Categories=GNOME;GTK;Settings;System;Utility;X-XFCE-SettingsDialog;X-XFCE-SystemSettings;
x (Monitor Settings ) { lxrandr } Categories=GTK;Settings;HardwareSettings;X-LXDE-Settings;
x (MX Tools ) { mx-tools } Categories=XFCE;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;
x (MX Tweak ) { mx-tweak } Categories=XFCE;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;MX-Tools;
x (nitrogen ) { nitrogen } Categories=Utility;GTK;DesktopSettings;
x (Onboard Settings ) { onboard-settings } Categories=Settings;Accessibility;
x (Papirus Folder Colors ) { papirus-folder-colors } Categories=Settings;MX-Tools;
x (Passwords and Keys ) { seahorse  } Categories=GNOME;GTK;Security;Utility;DesktopSettings;X-XFCE-SettingsDialog;
x (Print Settings ) { system-config-printer } Categories=GNOME;GTK;Settings;HardwareSettings;X-GNOME-Settings-Panel;X-Unity-Settings-Panel;System;Printing;
x (PulseAudio Volume Control ) { pavucontrol } Categories=AudioVideo;Audio;Mixer;GTK;Settings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;
x (Removable Drives and Media ) { thunar-volman-settings } Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;
x (Settings Manager ) { custom-toolbox /etc/custom-toolbox/mxfb-settings.list } Categories=GNOME;GTK;System;
x (Synaptic Package Manager ) { synaptic-pkexec } Categories=PackageManager;GTK;System;Settings;
x (System Keyboard ) { system-keyboard-qt-launcher } Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;MX-Tools;
x (Thunar Preferences ) { thunar-settings } Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;
x (Tint2 Settings ) { tint2conf } Categories=Settings;DesktopSettings;
x (Window Effects ) { compton-conf } Categories=Settings;DesktopSettings;Qt;LXQt;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;
x (Xfce Terminal Settings ) { xfce4-terminal --preferences } Categories=XFCE;GTK;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;
[end]
[submenu] (Other)
x (Exit options ) { exit-options } Categories=Accessories;
[end]
[end]
Last edited by siamhie on Thu Aug 07, 2025 12:30 pm, edited 1 time in total.
Reason: Applied code tags to lengthy menu output

User avatar
siamhie
Global Moderator
Posts: 3599
Joined: Fri Aug 20, 2021 5:45 pm

Re: mxfb2025: Menus

#72 Post by siamhie »

siamhie wrote: Wed Aug 06, 2025 10:52 pm
AA BB wrote: Wed Aug 06, 2025 9:38 pm
siamhie wrote: Tue Aug 05, 2025 10:49 pm
Open the root menu (All Apps) and click on Update at the bottom. Does that fix it?
I've already tried this previously ...it does not fix the problem
@AA BB What does your menu entry look like?
Root menu > Settings > Configure > Menus > Main. (Post it in code tags...the </> icon)

@AA BB What about the main menu entry?

Never mind. I see the problem with your full_menu file.
Every entry is crossed out.

Code: Select all

x (Archive Manager ) { file-roller  } Categories=GTK;GNOME;Utility;Archiving;Compression;X-GNOME-Utilities;
Edit full_menu and replace all of the x's in front of each entry on the list with [exec].
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

AA BB
Posts: 373
Joined: Mon Nov 11, 2019 10:49 pm

Re: mxfb2025: Menus

#73 Post by AA BB »

@AA BB What does your menu entry look like?
Root menu > Settings > Configure > Menus > Main. (Post it in code tags...the </> icon)

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]
	[submenu] (Recent files) 
			[include] (~/.fluxbox/submenus/recent_files_menu)
			[separator]
			[exec] (Update) {~/.fluxbox/scripts/recentfiles-fbmenu}
		[end]
	[separator]
    [exec] (Browser) {sensible-browser}
    [exec] (File manager) {exo-open $HOME/.fluxbox} 
    [submenu] (Extras)
    	[exec] (Weather) {mxfb-simple-weather}
    	[submenu] (Window options)
    	   	[Exec] (Border) {mxfb-borders}
    		[Exec] (Titlebar) {mxfb-top}
        [end]
        [exec] (Xkcd) {bl-xkcd}
    [end]
    [exec] (Help) {mxfb-help}
    [exec] (Music) {deadbeef}
    [exec] (Run) {mxfb-rofirun}
    [exec] (Settings manager) {custom-toolbox /etc/custom-toolbox/mxfb-settings.list} 
    [exec] (Terminal) {roxterm} 
    [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'}
        [exit] (Logout) 
        [exec] (Reboot) {sudo /sbin/reboot} 
        [exec] (Shutdown) {sudo /sbin/halt}
    [end]
[end]
Last edited by siamhie on Thu Aug 07, 2025 12:40 pm, edited 1 time in total.
Reason: Applied code tags to lentghy response.

AA BB
Posts: 373
Joined: Mon Nov 11, 2019 10:49 pm

Re: mxfb2025: Menus

#74 Post by AA BB »

Never mind. I see the problem with your full_menu file.
Every entry is crossed out.

Code: Select all

x (Archive Manager ) { file-roller  } Categories=GTK;GNOME;Utility;Archiving;Compression;X-GNOME-Utilities;
Edit full_menu and replace all of the x's in front of each entry on the list with [exec].
I've edited this file twice to remove the "x " characters at the start of each line... but after I reboot the file gets reset with all the "x " again ...Dont quite get what the reasoning behind this is, but it should be changed in my humble opinion. I fully support the basic idea that these menus /submenus should be user edit-able, but resetting the "x " makes no sense

User avatar
dolphin_oracle
Developer
Posts: 22547
Joined: Sun Dec 16, 2007 12:17 pm

Re: mxfb2025: Menus

#75 Post by dolphin_oracle »

AA BB wrote: Thu Aug 07, 2025 1:18 pm
Never mind. I see the problem with your full_menu file.
Every entry is crossed out.

Code: Select all

x (Archive Manager ) { file-roller  } Categories=GTK;GNOME;Utility;Archiving;Compression;X-GNOME-Utilities;
Edit full_menu and replace all of the x's in front of each entry on the list with [exec].
I've edited this file twice to remove the "x " characters at the start of each line... but after I reboot the file gets reset with all the "x " again ...Dont quite get what the reasoning behind this is, but it should be changed in my humble opinion. I fully support the basic idea that these menus /submenus should be user edit-able, but resetting the "x " makes no sense
it shouldn't be making those x.

can you post the output of

Code: Select all

locale
and

Code: Select all

cat /usr/bin/mxfb-menu-generator
and

Code: Select all

cat $HOME/.fluxbox/startup
please.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

AA BB
Posts: 373
Joined: Mon Nov 11, 2019 10:49 pm

Re: mxfb2025: Menus

#76 Post by AA BB »

L ~ $locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=


///////////////////////
LL ~ $cat $HOME/.fluxbox/startup
#!/bin/sh
#
# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.

#setup default translated mx-fluxbox menu
#only do on first setup of new user
#upgrades are handled by mxflux_install.sh script

# localize fluxbox menu
# to reset default localized menu configuration, delete ~/.fluxbox/menu-chkd
# logout, then log back in to fluxbox session
localize_fluxbox_menu-mx

# mx-welcome if configured to autostart
if [ -e $HOME/.config/autostart/mx-welcome.desktop ]; then
# launch mx-welcome
(sleep 5; /usr/bin/mx-welcome) &
fi

# User folders update
xdg-user-dirs-update
# Update common folders names to match current locale
xdg-user-dirs-gtk-update

#start a compositor if using complicated conkies
#compton &

#set number of seconds before inactive screen turns off
xset -dpms && xset s 600

#add system monitors
#gkrellm &

# arandr genrated screenlayout
# before conky

# export Qt variables
export QT_QPA_PLATFORMTHEME=gtk2
export QT_PLATFORMTHEME=gtk2
export QT_PLATFORM_PLUGIN=gtk2

# add selected tint2 panel
tint2session

# add desktop icons
idesktoggle idesk on 1>/dev/null 2>&1 &

# add root access
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &

#set the default dock
$HOME/.fluxbox/scripts/DefaultDock.mxdk

#conky to follow conky toggle settings
conkystart

#place network manager on the toolbar
nm-applet &

#start pipewire before volumeicon so unmute works
pipewire-start
sleep 2
volumeicon -c volumeicon-fluxbox &

#place clipboard on the toolbar
xfce4-clipman &

#put brightness controller and battery monitor on toolbar
#tint2 has its own battery widget so this is unnecessaary
#xfce4-power-manager &

# start user accessibility bus - if not already running
/usr/libexec/at-spi-bus-launcher --launch-immediately &

#update app menu if it doesn't exist
if [ ! -f $HOME/.fluxbox/submenus/full_menu ]; then
command -v mxfb-menu-generator && mxfb-menu-generator
fi

#get last background selected
#~/.fehbg
nitrogen --restore

# Debian-local change:
# - fbautostart has been added with a quick hack to check to see if it
# exists. If it does, we'll start it up by default.
which fbautostart > /dev/null
if [ $? -eq 0 ]; then
fbautostart
fi

# put apt-notifier on the toolbar
(sleep 6; /usr/bin/apt-notifier) &

# start spice-vdagent in KVM/Qemu
if [ -x /usr/bin/spice-vdagent ]; then
pidof -q spice-vdagentd && /usr/bin/spice-vdagent
fi

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec fluxbox
# or if you want to keep a log:
# exec fluxbox -log ~/.fluxbox/log
LL ~ $


////////////////////////////////////////////////////////////////////
///////////////////////
LL ~ $cat /usr/bin/mxfb-menu-generator
#!/bin/bash

### mxfb-menu-generator: a tiny script to Create a (non dynamic) fluxbox menu using information on .desktop files, released by PPC, 7/10/2020, under GPLv3
### Modified by MX Linux Devs for use in MX-Fluxbox August 2021

### How to use this script:
### 1. Copy the script below and paste it into your text editor, saving it in your Home as MXFB_menu_generator.sh
### 2. Navigate to that file, right click it > Proprieties > "Permissions" tab > Check the last field, to allow this script to run as a program
### 3. Add the following entry to your menu to access "All Categories" anywhere you want
#######################################################################################
#[submenu] (All Apps)
# [include] (~/.fluxbox/submenus/full_menu)
# [separator]
# [include] (~/.fluxbox/full_menu)
# [end]
#######################################################################################
### 4.- Now click Menu > All apps > Update menu. Wait for some seconds while the menu is generated

#ensure subfolder menu exists
if [ ! -d "$HOME/.fluxbox/submenus" ]; then
mkdir -p "$HOME/.fluxbox/submenus"
fi

#use a temp file for unsorted list
TEMPLIST="$(mktemp /tmp/mxfb-menu-generator.XXXXX)"

#preglobal file (can be removed)
PREGLOBAL="$HOME/.fluxbox/pre-global-menu.txt"

#target menu file
FILE="$HOME/.fluxbox/submenus/full_menu"

#exit if in chroot
if [ "$UID" = "0" ]; then
echo "mxfb-menu-generator: in a chroot, exiting..."
exit 0
fi

#exit if menu generation toggled off
if [ "$1" = "auto" ]; then
if [ -e "$HOME/.fluxbox/mxfb-menu-generator-disabled.chk" ]; then
exit 0
fi
fi

#check time since last build
time=0
now=$(date +"%s")
if [ -e "FILE" ]; then
time=$(stat --format %Y $FILE)
fi

if [ $(($now-$time)) -lt 5 ]; then
exit 0
fi

Encoding=UTF-8
#
# use session locale
SESSION_LANG=$(sed -n '/^Language=/{s///; s/[.].*/.UTF-8/;p;q}' ~/.dmrc 2>/dev/null) ;
LANG=${SESSION_LANG:=$LANG}

# i18n - Internationalization
#export TEXTDOMAIN=mxfb-accessories
export TEXTDOMAIN=mx-desktop-menu-l10n
export TEXTDOMAINDIR="/usr/share/locale"

CATEGORIES="Accessories Development Games Graphics Internet Multimedia MX-Tools MX-Live MX-Maintenance MX-Setup MX-Software MX-Utilities MXFB-Tools Office System Settings"
ALLAPPS=$(gettext "All Applications")
[ "$ALLAPPS" = "All Applications" ] && ALLAPPS="All Apps"

echo "Please wait, creating menu file - stored in $FILE ..."

#echo
#echo If you want to insert this 'All categories' sub-menu into your MXFB menu:
#echo 'rootMenu > Settings > Configure > Menu'
#echo and insert, anywhere you want, this code:
#echo ' [submenu] (All apps)'
#echo ' [include] (~/.fluxbox/submenus/full_menu)'
#echo ' [separator] '
#echo ' [exec] (Update Menu) {mxfb-menu-generator} '
#echo ' [end]'
#echo


#Get system language (to allow localization):
lang=${LANG%%_*}

#Loop through all .desktop files in the applications folder
#lang=fr

LIST="/usr/share/applications/*.desktop"

if [ -n "$(find /var/lib/flatpak/exports/share/applications/ -name *.desktop 2>/dev/null)" ]; then
LIST="$LIST /var/lib/flatpak/exports/share/applications/*.desktop"
fi

if [ -n "$(find $HOME/.local/share/applications/ -name *.desktop 2>/dev/null)" ]; then
LIST="$LIST $HOME/.local/share/applications/*.desktop"
fi

if [ -n "$(find $HOME/.local/share/flatpak/exports/share/applications/ -name *.desktop 2>/dev/null)" ]; then
LIST="$LIST $HOME/.local/share/flatpak/exports/share/applications/*.desktop"
fi

if [ -n "$(find /usr/share/applications/antix/ -name *.desktop 2>/dev/null)" ]; then
LIST="$LIST /usr/share/applications/antix/*.desktop"
fi

for file in $LIST
do

if [ -f "$file" ]; then
name1=$(grep -o -m 1 '^Name=.*' "$file")
### localized menu entries generator (slows the script down, but produces nearly perfect localized menus):
name2=$name1
translated_name1=$(grep -o -m 1 "^Name\[$lang\]=.*" "$file")
[ -z "$translated_name1" ] && note="No localized name found, using the original one" || name2=$translated_name1
#if the desktop file has the string "Desktop Action" simple use the original untranslated name, to avoid using a translation that's not the name of the app, but the action it does
grep -q "Desktop Action" "$file" && name2=$name1
name1=$name2
### end of localized menu entries generator

name=$(echo $name1|sed 's/.*\=//')
command1="$(grep -o -m 1 '^Exec=.*' "$file")"
command=$(echo "$command1" |sed -E 's/Exec\=//g')
name=$(echo "$name" |sed 's/[()]//g')
terminal=$(grep -o -m 1 'Terminal=.*' "$file")
if [[ $terminal == *"true"* ]]; then
command=$(echo x-terminal-emulator -e $command)
fi
categories=$(grep -o -m 1 'Categories=.*' "$file")

#process NoDisplay, OnlyShowIn, NotShowIn
nodisplay=$(grep -o -m 1 'NoDisplay=.*' "$file")
onlyshowin=$(grep -o -m 1 'OnlyShowIn=.*' "$file")
notshowin=$(grep -o -m 1 'NotShowIn=.*' "$file")
if [ -n "$onlyshowin" ]; then
if [[ ! "$onlyshowin" =~ "fluxbox" ]]; then
nodisplay=true
fi
fi
if [ -n "$notshowin" ]; then
if [[ "$notshowin" =~ "fluxbox" ]]; then
nodisplay=true
fi
fi
if [[ $nodisplay != *"rue"* ]]; then
echo "[exec] ("$name ")" "{" $command "}" $categories
fi
fi
done > "$TEMPLIST"

#process MX-Tools categories in temp list
sed -i "s/MX-Live/MX-Tools/" "$TEMPLIST"
sed -i "s/MX-Maintenance/MX-Tools/" "$TEMPLIST"
sed -i "s/MX-Setup/MX-Tools/" "$TEMPLIST"
sed -i "s/MX-Software/MX-Tools/" "$TEMPLIST"
sed -i "s/MX-Utilities/MX-Tools/" "$TEMPLIST"
sort "$TEMPLIST" > "$PREGLOBAL"
rm "$TEMPLIST"
#remove existing menu file, if it exists
if [ -e "$FILE" ]; then
rm "$FILE"
fi

#fix for repeated synaptic menu entry- first instance does not run, so, delete it:
sed -i '/{ synaptic }/d' "$PREGLOBAL"

#### Now divide applications into categories:
#This array has all the available .desktop file categories we want to have on the menu (note: the "." is a quick and dirty workaround, so the script ignores entry nr 0):
array1=( . Utility Development Game Graphics Network AudioVideo MX-Tools MX-Live MX-Maintenance MX-Setup MX-Software MX-Utilities X-MXFB-Tools Office System Settings)
#This array corresponds to the previous one, but it's the "user friendly name" that shows on the menu- NOTE: this can be translated to any language!
array2=( . $CATEGORIES)

#Begin LOCALIZATION OF Category sub-menus to a language - pt, add equivalent section for other languages:
# if [[ $lang == *"pt"* ]];
# then
# array2=( . Acessórios Desenvolvimento Jogos Graficos Internet Multimédia Escritório Sistema 'Definições globais')
# echo A criar submenus em Português
# fi
#End LOCALIZATION OF Category sub-menus

#Create the header of the file
echo "[begin] ($ALLAPPS)" >> $FILE
#Loop through the array- the last number below has to match the number of entries on $array1
for i in {1..16};
do
#Create a submenu entry for the current item on $array2
MAKESUBMENU=true
#Nested loop to check if the item on the current line of the "pre-global-menu.txt" file matches the current item on $array1, if it matches, add it to the "$FILE" file
while read p; do
if [[ $p =~ ${array1[$i]} ]]
then
if [ "$MAKESUBMENU" = "true" ]; then
echo "[submenu] ($(gettext "${array2[$i]}"))" >> $FILE
MAKESUBMENU=false
fi
echo $p >> $FILE
fi
done <"$PREGLOBAL" ;
if [ "$MAKESUBMENU" = "false" ]; then
echo '[end]' >> $FILE ;
fi
MAKESUBMENU=true
done

#Process only entries that don't fit anywhere else:
sed -i '/Utility/d' "$PREGLOBAL"
sed -i '/Development/d' "$PREGLOBAL"
sed -i '/Game/d' "$PREGLOBAL"
sed -i '/Graphics/d' "$PREGLOBAL"
sed -i '/AudioVideo/d' "$PREGLOBAL"
sed -i '/Office/d' "$PREGLOBAL"
sed -i '/System/d' "$PREGLOBAL"
sed -i '/Settings/d' "$PREGLOBAL"
sed -i '/Network/d' "$PREGLOBAL"
sed -i '/MX-Tools/d' "$PREGLOBAL"
sed -i '/MX-Live/d' "$PREGLOBAL"
sed -i '/MX-Maintenance/d' "$PREGLOBAL"
sed -i '/MX-Setup/d' "$PREGLOBAL"
sed -i '/MX-Software/d' "$PREGLOBAL"
sed -i '/MX-Utilities/d' "$PREGLOBAL"
sed -i '/MXFB-Tools/d' "$PREGLOBAL"


#check if the file is not empty, create last submenu and populate it
if [ -n "$(grep exec "$PREGLOBAL")" ]; then
echo "[submenu] ($(gettext "Other"))" >> $FILE
while read p; do
echo $p >> $FILE
done <"$PREGLOBAL" ;
echo '[end]' >> $FILE
fi

###Fix menu errors, so Libreoffice, etc, work without errors
delete="%U"
sed -e s/$delete//g -i $FILE
delete="%u"
sed -e s/$delete//g -i $FILE
delete="%F"
sed -e s/$delete//g -i $FILE
delete="%f"
sed -e s/$delete//g -i $FILE

##add [end] to the end, to match the very first [begin]
echo "[end]" >> $FILE

#modify menu to remove empty mx-tools entries
sed -i '0,/\[submenu\] (MX-Live)/{//!b; :a; n; /\[end\]/d; ba;}' $FILE
sed -i "/\[submenu\] (MX-Live)/d" $FILE
sed -i '0,/\[submenu\] (MX-Maintenance)/{//!b; :a; n; /\[end\]/d; ba;}' $FILE
sed -i "/\[submenu\] (MX-Maintenance)/d" $FILE
sed -i '0,/\[submenu\] (MX-Setup)/{//!b; :a; n; /\[end\]/d; ba;}' $FILE
sed -i "/\[submenu\] (MX-Setup)/d" $FILE
sed -i '0,/\[submenu\] (MX-Software)/{//!b; :a; n; /\[end\]/d; ba;}' $FILE
sed -i "/\[submenu\] (MX-Software)/d" $FILE
sed -i '0,/\[submenu\] (MX-Utilities)/{//!b; :a; n; /\[end\]/d; ba;}' $FILE
sed -i "/\[submenu\] (MX-Utilities)/d" $FILE

echo Menu file created and ready to be used

#cleanup preglobal
#rm "$PREGLOBAL"

#if fluxbox running, reload menu
test=$(ps -aux)
if [[ "$test" == *"startfluxbox" ]]; then
pkill -SIGUSR1 fluxbox
killall -SIGUSR1 conky 2>/dev/null
fi
exit 0
LL ~ $

User avatar
dolphin_oracle
Developer
Posts: 22547
Joined: Sun Dec 16, 2007 12:17 pm

Re: mxfb2025: Menus

#77 Post by dolphin_oracle »

thank you.

ok last one

Code: Select all

grep menu $HOME/.fluxbox/init
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
Eadwine Rose
Administrator
Posts: 15037
Joined: Wed Jul 12, 2006 2:10 am

Re: mxfb2025: Menus

#78 Post by Eadwine Rose »

Please post code on the forum like this:

[code]code output here[/code]

Thanks.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

AA BB
Posts: 373
Joined: Mon Nov 11, 2019 10:49 pm

Re: mxfb2025: Menus

#79 Post by AA BB »

Code: Select all

grep menu $HOME/.fluxbox/init
session.screen0.menu.alpha:	255
session.screen0.menuDelay:	200
session.screen0.windowMenu:	~/.fluxbox/submenus/windowmenu
session.menuSearch:	itemstart
session.menuFile:	~/.fluxbox/menu-mx
LL ~ $


AA BB
Posts: 373
Joined: Mon Nov 11, 2019 10:49 pm

Re: mxfb2025: Menus

#80 Post by AA BB »

Eadwine Rose wrote: Thu Aug 07, 2025 1:48 pm Please post code on the forum like this:

[code]code output here[/code]

Thanks.
Am I misinformed.. is there a way to quickly generate a blank

Code: Select all

 block  without typing the characters?

Post Reply

Return to “MX Fluxbox Official Release”