Page 11 of 22
Re: mxfb-2025 development ideas
Posted: Mon Oct 28, 2024 12:18 pm
by Jerry3904
I can't speak for others, but guess I won't run plank in my setup. Feel its flashy appearance doesn't fit in fluxbox' overall sober / straightforward looks.
And it's rather heavy on memory, compared to (already installed) tint2 launcher panel.
So +1 to @Melber's suggestion. But hey, to each their own...
I'm thinking to provide a GUI
Dock Selector with the three options and uninstall available...more on this as we get closer
Re: mxfb-2025 development ideas
Posted: Mon Oct 28, 2024 12:41 pm
by siamhie
dolphin_oracle wrote: Mon Oct 28, 2024 11:38 am
mxfb-menu-generator, modified to make a MX-Tools menu entry.
Does this mean we will have an MX Tools category in the full menu file? (I'm looking at the code and think I see the changes but I'm not sure)
This is my modified full menu file I've named submenu
Code: Select all
[submenu] (Apps)
[include] (~/.fluxbox/submenus/submenu)
[end]
Code: Select all
[begin] (All Apps)
[submenu] (Accessories)
[exec] (Application Finder ) { xfce4-appfinder }
[exec] (Bulk Rename ) { thunar --bulk-rename }
[exec] (Calendar) {gsimplecal}
[exec] (compton ) { compton }
[exec] (Conky Manager ) { conky-manager2 }
[exec] (Conky Toggle ) { conkytoggle.sh }
[exec] (FSearch ) { fsearch }
[exec] (Galculator ) { galculator }
[exec] (GtkHash ) { gtkhash }
[exec] (Hardinfo2 ) { hardinfo2 }
[exec] (Help ) { yelp }
[exec] (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec }
[exec] (Magnus ) { magnus }
[exec] (Mousepad ) { mousepad }
[exec] (nitrogen ) { nitrogen }
[exec] (Onboard ) { onboard }
[exec] (Passwords and Keys ) { seahorse }
[exec] (Run Program... ) { xfce4-appfinder --collapsed }
[exec] (TeXInfo ) { x-terminal-emulator -e info }
[exec] (Thunar File Manager ) { thunar }
[exec] (VirtualBox ) { VirtualBox }
[exec] (Xarchiver ) { xarchiver }
[end]
[submenu] (Development)
[exec] (Geany ) { geany }
[exec] (Icon Browser ) { yad-icon-browser }
[end]
[submenu] (Games)
[exec] (KAces ) { /usr/games/kaces }
[exec] (KCanfield ) { /usr/games/kcanfield }
[exec] (KCribbage ) { /usr/games/kcribbage }
[exec] (KDominos ) { /usr/games/kdominos }
[exec] (KKlondike ) { /usr/games/kklondike }
[exec] (KMCarlo ) { /usr/games/kmcarlo }
[exec] (KMontana ) { /usr/games/kmontana }
[exec] (KSlyfox ) { /usr/games/kslyfox }
[exec] (KSpider ) { /usr/games/kspider }
[exec] (KTabby ) { /usr/games/ktabby }
[exec] (KThieves ) { /usr/games/kthieves }
[exec] (KTowers ) { /usr/games/ktowers }
[exec] (XMille ) { /usr/games/xmille }
[exec] (XReversi ) { /usr/games/xreversi }
[end]
[submenu] (Graphics)
[exec] (Fontmatrix ) { fontmatrix }
[exec] (GNU Image Manipulation Program ) { gimp-2.10 }
[exec] (Gpick ) { gpick }
[exec] (nomacs ) { nomacs }
[end]
[submenu] (Internet)
[exec] (Advanced Network Configuration ) { nm-connection-editor }
[exec] (LibreWolf ) { /usr/share/librewolf/librewolf }
[exec] (MX Network Assistant ) { mx-network-assistant }
[exec] (MX Viewer ) { mx-viewer }
[exec] (qBittorrent ) { qbittorrent }
[end]
[submenu] (MX Tools)
[exec] (About MX Linux ) { mx-welcome --about }
[exec] (MX Boot Options ) { mx-boot-options }
[exec] (MX Boot Repair ) { mx-boot-repair }
[exec] (MX Cleanup ) { mx-cleanup }
[exec] (MX Comfort ) { mxfb-comfort }
[exec] (MX Conky ) { mx-conky }
[exec] (MX Date & Time ) { mx-datetime }
[exec] (MX Dockmaker ) { mx-dockmaker }
[exec] (MX Fix GPG keys ) { x-terminal-emulator -e pkexec checkaptgpg --wait-at-end }
[exec] (MX Idesktool ) { mx-idesktool }
[exec] (MX Live USB Maker ) { mx-live-usb-maker }
[exec] (MX Locale ) { mx-locale }
[exec] (MX Network Assistant ) { mx-network-assistant }
[exec] (MX Package Installer ) { mx-packageinstaller }
[exec] (MX RemasterCC ) { mx-remastercc }
[exec] (MX Repo Manager ) { mx-repo-manager }
[exec] (MX Select Sound ) { mx-select-sound }
[exec] (MX Service Manager ) { mx-service-manager }
[exec] (MX Snapshot ) { mx-snapshot }
[exec] (MX Tools ) { mx-tools }
[exec] (MX Tour ) { mx-tour }
[exec] (MX Tweak ) { mx-tweak }
[exec] (MX USB Unmounter ) { mx-usb-unmounter }
[exec] (MX User Manager ) { mx-user }
[exec] (MX User Manual ) { mx-manual }
[exec] (MX Viewer ) { mx-viewer }
[exec] (MX Welcome ) { mx-welcome }
[end]
[submenu] (Multimedia)
[exec] (Alsamixer ) { x-terminal-emulator -e alsamixer }
[exec] (ClipGrab ) { clipgrab }
[exec] (guvcview webcam ) { guvcview }
[exec] (HandBrake ) { ghb }
[exec] (Kdenlive ) { kdenlive }
[exec] (MediaInfo ) { mediainfo-gui }
[exec] (mpv Media Player ) { mpv --player-operation-mode=pseudo-gui -- }
[exec] (PulseAudio Volume Control ) { pavucontrol }
[exec] (QMPlay2 ) { QMPlay2 }
[exec] (Xfburn ) { xfburn }
[exec] (XMMS ) { xmms }
[end]
[submenu] (Office)
[exec] (qpdfview ) { qpdfview --unique }
[end]
[submenu] (System)
[exec] (Backgrounds ) { nitrogen }
[exec] (Bash Config ) { bash-config }
[exec] (Borders ) { mxfb-borders }
[exec] (btop++ ) { x-terminal-emulator -e btop }
[exec] (Conky Toggle ) { conkytoggle.sh }
[exec] (Custom Toolbox ) { custom-toolbox }
[exec] (dconf Editor ) { dconf-editor }
[exec] (Deb Installer ) { deb-installer }
[exec] (Disk Manager ) { /usr/bin/disk-manager-launcher }
[exec] (Disk Usage Analyzer ) { baobab }
[exec] (Exit Options Manager ) { exit-options-manager }
[exec] (FAQ ) { mx-faq }
[exec] (Font ) { mxfb-font }
[exec] (Format USB ) { formatusb }
[exec] (GKrellM System Monitor ) { gkrellm }
[exec] (GParted ) { /usr/sbin/gparted }
[exec] (Grsync ) { /usr/bin/grsync -i }
[exec] (GSmartControl ) { "/usr/bin/gsmartcontrol-root" }
[exec] (Hardinfo2 ) { hardinfo2 }
[exec] (Htop ) { x-terminal-emulator -e htop }
[exec] (Job Scheduler ) { job-scheduler }
[exec] (LACT ) { lact gui }
[exec] (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec }
[exec] (Look ) { mxfb-look }
[exec] (Manual ) { mxfb-help }
[exec] (Nvidia driver installer ) { x-terminal-emulator -e pkexec /usr/bin/ddm-mx -i nvidia }
[exec] (Quickshot ) { mxfb-quickshot }
[exec] (Quick System Info ) { quick-system-info-gui }
[exec] (Screensaver ) { xdg-open /usr/share/doc/mxfb-accessories/help_mxfb-screensaver }
[exec] (Settings Manager ) { custom-toolbox /etc/custom-toolbox/mxfb-settings.list }
[exec] (Shortcuts ) { mxfb-keybindings }
[exec] (Synaptic Package Manager ) { synaptic-pkexec }
[exec] (System Keyboard ) { system-keyboard-qt-launcher }
[exec] (Thunar File Manager ) { thunar }
[exec] (Tint2 Manager ) { /usr/bin/mxfb-tint2-manager }
[exec] (Tint2 ) { tint2 }
[exec] (Titlebar ) { mxfb-top }
[exec] (Trash check ) { mxfb-trashcheck }
[exec] (User Installed Packages ) { user-installed-packages }
[exec] (UXTerm ) { uxterm }
[exec] (VirtualBox ) { VirtualBox }
[exec] (Xfce Terminal ) { xfce4-terminal }
[exec] (XTerm ) { xterm }
[end]
[submenu] (Settings)
[exec] (About Me ) { /usr/bin/mugshot }
[exec] (Adblock ) { block-advert-launcher }
[exec] (Advanced Network Configuration ) { nm-connection-editor }
[exec] (ARandR ) { arandr }
[exec] (Brightness Systray ) { mx-tweak --tray & }
[exec] (File Manager Settings ) { thunar-settings }
[exec] (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec }
[exec] (Monitor Settings ) { lxrandr }
[exec] (nitrogen ) { nitrogen }
[exec] (Notifications ) { xfce4-notifyd-config }
[exec] (Onboard Settings ) { onboard-settings }
[exec] (Papirus Folder Colors ) { papirus-folder-colors }
[exec] (Passwords and Keys ) { seahorse }
[exec] (PulseAudio Volume Control ) { pavucontrol }
[exec] (Removable Drives and Media ) { thunar-volman-settings }
[exec] (Rofi Manager ) { mx-rofi-manager }
[exec] (Settings Manager ) { custom-toolbox /etc/custom-toolbox/mxfb-settings.list }
[exec] (Synaptic Package Manager ) { synaptic-pkexec }
[exec] (System Keyboard ) { system-keyboard-qt-launcher }
[exec] (Tint2 Settings ) { tint2conf }
[exec] (Window Effects ) { compton-conf }
[exec] (Xfce Terminal Settings ) { xfce4-terminal --preferences }
[end]
[submenu] (Other)
[exec] (Chroot Rescue Scan ) { x-terminal-emulator -e sudo chroot-rescue-scan --pause }
[exec] (Exit options ) { exit-options }
[exec] (Live-USB Kernel Updater ) { x-terminal-emulator -e sudo /usr/local/bin/live-kernel-updater --pause }
[exec] (NordVPN ) { x-terminal-emulator -e nordvpn click }
[end]
Re: mxfb-2025 development ideas
Posted: Mon Oct 28, 2024 12:46 pm
by Jerry3904
dolphin_oracle wrote: Mon Oct 28, 2024 11:38 am
mxfb-menu-generator, modified to make a MX-Tools menu entry.
cut and pasting here, cuz I'm away from my git at the moment, but I had an itch...
**edit*** menu now sorted.
<snip>
Now that's a neat trick

-- looking forward to testing it when available.
Re: mxfb-2025 development ideas
Posted: Mon Oct 28, 2024 1:20 pm
by AVLinux
Although I'm not a MX-FB User (I just shamelessly hang around backstage) I also feel there is a missing link in the Dock situation. Most DE's I've tried are able to to utilize a second panel for a row of launchers but often it's a bit 'meh' and rigid as far as customization goes, then the big leap to the singing dancing stage lights of formal docks is a bridge too far. On a brief visit to KDE I was very surprised at how much RAM usage soared with the latte Dock. You wild and crazy MX-FB folks seems just the type to come up with an intermediate solution...
*Back in my early LXDE days I liked the old wbar dock, with some good images it could be light, attractive and a step above a panel of launchers but it was all text config so not very newb friendly. Something like wbar with a YAD setup UI could be pretty useful and light..
Re: mxfb-2025 development ideas
Posted: Mon Oct 28, 2024 3:07 pm
by dolphin_oracle
siamhie wrote: Mon Oct 28, 2024 12:41 pm
dolphin_oracle wrote: Mon Oct 28, 2024 11:38 am
mxfb-menu-generator, modified to make a MX-Tools menu entry.
Does this mean we will have an MX Tools category in the full menu file? (I'm looking at the code and think I see the changes but I'm not sure)
This is my modified full menu file I've named submenu
Code: Select all
[submenu] (Apps)
[include] (~/.fluxbox/submenus/submenu)
[end]
Code: Select all
[begin] (All Apps)
[submenu] (Accessories)
[exec] (Application Finder ) { xfce4-appfinder }
[exec] (Bulk Rename ) { thunar --bulk-rename }
[exec] (Calendar) {gsimplecal}
[exec] (compton ) { compton }
[exec] (Conky Manager ) { conky-manager2 }
[exec] (Conky Toggle ) { conkytoggle.sh }
[exec] (FSearch ) { fsearch }
[exec] (Galculator ) { galculator }
[exec] (GtkHash ) { gtkhash }
[exec] (Hardinfo2 ) { hardinfo2 }
[exec] (Help ) { yelp }
[exec] (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec }
[exec] (Magnus ) { magnus }
[exec] (Mousepad ) { mousepad }
[exec] (nitrogen ) { nitrogen }
[exec] (Onboard ) { onboard }
[exec] (Passwords and Keys ) { seahorse }
[exec] (Run Program... ) { xfce4-appfinder --collapsed }
[exec] (TeXInfo ) { x-terminal-emulator -e info }
[exec] (Thunar File Manager ) { thunar }
[exec] (VirtualBox ) { VirtualBox }
[exec] (Xarchiver ) { xarchiver }
[end]
[submenu] (Development)
[exec] (Geany ) { geany }
[exec] (Icon Browser ) { yad-icon-browser }
[end]
[submenu] (Games)
[exec] (KAces ) { /usr/games/kaces }
[exec] (KCanfield ) { /usr/games/kcanfield }
[exec] (KCribbage ) { /usr/games/kcribbage }
[exec] (KDominos ) { /usr/games/kdominos }
[exec] (KKlondike ) { /usr/games/kklondike }
[exec] (KMCarlo ) { /usr/games/kmcarlo }
[exec] (KMontana ) { /usr/games/kmontana }
[exec] (KSlyfox ) { /usr/games/kslyfox }
[exec] (KSpider ) { /usr/games/kspider }
[exec] (KTabby ) { /usr/games/ktabby }
[exec] (KThieves ) { /usr/games/kthieves }
[exec] (KTowers ) { /usr/games/ktowers }
[exec] (XMille ) { /usr/games/xmille }
[exec] (XReversi ) { /usr/games/xreversi }
[end]
[submenu] (Graphics)
[exec] (Fontmatrix ) { fontmatrix }
[exec] (GNU Image Manipulation Program ) { gimp-2.10 }
[exec] (Gpick ) { gpick }
[exec] (nomacs ) { nomacs }
[end]
[submenu] (Internet)
[exec] (Advanced Network Configuration ) { nm-connection-editor }
[exec] (LibreWolf ) { /usr/share/librewolf/librewolf }
[exec] (MX Network Assistant ) { mx-network-assistant }
[exec] (MX Viewer ) { mx-viewer }
[exec] (qBittorrent ) { qbittorrent }
[end]
[submenu] (MX Tools)
[exec] (About MX Linux ) { mx-welcome --about }
[exec] (MX Boot Options ) { mx-boot-options }
[exec] (MX Boot Repair ) { mx-boot-repair }
[exec] (MX Cleanup ) { mx-cleanup }
[exec] (MX Comfort ) { mxfb-comfort }
[exec] (MX Conky ) { mx-conky }
[exec] (MX Date & Time ) { mx-datetime }
[exec] (MX Dockmaker ) { mx-dockmaker }
[exec] (MX Fix GPG keys ) { x-terminal-emulator -e pkexec checkaptgpg --wait-at-end }
[exec] (MX Idesktool ) { mx-idesktool }
[exec] (MX Live USB Maker ) { mx-live-usb-maker }
[exec] (MX Locale ) { mx-locale }
[exec] (MX Network Assistant ) { mx-network-assistant }
[exec] (MX Package Installer ) { mx-packageinstaller }
[exec] (MX RemasterCC ) { mx-remastercc }
[exec] (MX Repo Manager ) { mx-repo-manager }
[exec] (MX Select Sound ) { mx-select-sound }
[exec] (MX Service Manager ) { mx-service-manager }
[exec] (MX Snapshot ) { mx-snapshot }
[exec] (MX Tools ) { mx-tools }
[exec] (MX Tour ) { mx-tour }
[exec] (MX Tweak ) { mx-tweak }
[exec] (MX USB Unmounter ) { mx-usb-unmounter }
[exec] (MX User Manager ) { mx-user }
[exec] (MX User Manual ) { mx-manual }
[exec] (MX Viewer ) { mx-viewer }
[exec] (MX Welcome ) { mx-welcome }
[end]
[submenu] (Multimedia)
[exec] (Alsamixer ) { x-terminal-emulator -e alsamixer }
[exec] (ClipGrab ) { clipgrab }
[exec] (guvcview webcam ) { guvcview }
[exec] (HandBrake ) { ghb }
[exec] (Kdenlive ) { kdenlive }
[exec] (MediaInfo ) { mediainfo-gui }
[exec] (mpv Media Player ) { mpv --player-operation-mode=pseudo-gui -- }
[exec] (PulseAudio Volume Control ) { pavucontrol }
[exec] (QMPlay2 ) { QMPlay2 }
[exec] (Xfburn ) { xfburn }
[exec] (XMMS ) { xmms }
[end]
[submenu] (Office)
[exec] (qpdfview ) { qpdfview --unique }
[end]
[submenu] (System)
[exec] (Backgrounds ) { nitrogen }
[exec] (Bash Config ) { bash-config }
[exec] (Borders ) { mxfb-borders }
[exec] (btop++ ) { x-terminal-emulator -e btop }
[exec] (Conky Toggle ) { conkytoggle.sh }
[exec] (Custom Toolbox ) { custom-toolbox }
[exec] (dconf Editor ) { dconf-editor }
[exec] (Deb Installer ) { deb-installer }
[exec] (Disk Manager ) { /usr/bin/disk-manager-launcher }
[exec] (Disk Usage Analyzer ) { baobab }
[exec] (Exit Options Manager ) { exit-options-manager }
[exec] (FAQ ) { mx-faq }
[exec] (Font ) { mxfb-font }
[exec] (Format USB ) { formatusb }
[exec] (GKrellM System Monitor ) { gkrellm }
[exec] (GParted ) { /usr/sbin/gparted }
[exec] (Grsync ) { /usr/bin/grsync -i }
[exec] (GSmartControl ) { "/usr/bin/gsmartcontrol-root" }
[exec] (Hardinfo2 ) { hardinfo2 }
[exec] (Htop ) { x-terminal-emulator -e htop }
[exec] (Job Scheduler ) { job-scheduler }
[exec] (LACT ) { lact gui }
[exec] (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec }
[exec] (Look ) { mxfb-look }
[exec] (Manual ) { mxfb-help }
[exec] (Nvidia driver installer ) { x-terminal-emulator -e pkexec /usr/bin/ddm-mx -i nvidia }
[exec] (Quickshot ) { mxfb-quickshot }
[exec] (Quick System Info ) { quick-system-info-gui }
[exec] (Screensaver ) { xdg-open /usr/share/doc/mxfb-accessories/help_mxfb-screensaver }
[exec] (Settings Manager ) { custom-toolbox /etc/custom-toolbox/mxfb-settings.list }
[exec] (Shortcuts ) { mxfb-keybindings }
[exec] (Synaptic Package Manager ) { synaptic-pkexec }
[exec] (System Keyboard ) { system-keyboard-qt-launcher }
[exec] (Thunar File Manager ) { thunar }
[exec] (Tint2 Manager ) { /usr/bin/mxfb-tint2-manager }
[exec] (Tint2 ) { tint2 }
[exec] (Titlebar ) { mxfb-top }
[exec] (Trash check ) { mxfb-trashcheck }
[exec] (User Installed Packages ) { user-installed-packages }
[exec] (UXTerm ) { uxterm }
[exec] (VirtualBox ) { VirtualBox }
[exec] (Xfce Terminal ) { xfce4-terminal }
[exec] (XTerm ) { xterm }
[end]
[submenu] (Settings)
[exec] (About Me ) { /usr/bin/mugshot }
[exec] (Adblock ) { block-advert-launcher }
[exec] (Advanced Network Configuration ) { nm-connection-editor }
[exec] (ARandR ) { arandr }
[exec] (Brightness Systray ) { mx-tweak --tray & }
[exec] (File Manager Settings ) { thunar-settings }
[exec] (LightDM GTK+ Greeter settings ) { lightdm-gtk-greeter-settings-pkexec }
[exec] (Monitor Settings ) { lxrandr }
[exec] (nitrogen ) { nitrogen }
[exec] (Notifications ) { xfce4-notifyd-config }
[exec] (Onboard Settings ) { onboard-settings }
[exec] (Papirus Folder Colors ) { papirus-folder-colors }
[exec] (Passwords and Keys ) { seahorse }
[exec] (PulseAudio Volume Control ) { pavucontrol }
[exec] (Removable Drives and Media ) { thunar-volman-settings }
[exec] (Rofi Manager ) { mx-rofi-manager }
[exec] (Settings Manager ) { custom-toolbox /etc/custom-toolbox/mxfb-settings.list }
[exec] (Synaptic Package Manager ) { synaptic-pkexec }
[exec] (System Keyboard ) { system-keyboard-qt-launcher }
[exec] (Tint2 Settings ) { tint2conf }
[exec] (Window Effects ) { compton-conf }
[exec] (Xfce Terminal Settings ) { xfce4-terminal --preferences }
[end]
[submenu] (Other)
[exec] (Chroot Rescue Scan ) { x-terminal-emulator -e sudo chroot-rescue-scan --pause }
[exec] (Exit options ) { exit-options }
[exec] (Live-USB Kernel Updater ) { x-terminal-emulator -e sudo /usr/local/bin/live-kernel-updater --pause }
[exec] (NordVPN ) { x-terminal-emulator -e nordvpn click }
[end]
that's the idea

Re: mxfb-2025 development ideas
Posted: Mon Oct 28, 2024 6:38 pm
by siamhie
dolphin_oracle wrote: Mon Oct 28, 2024 3:07 pm
siamhie wrote: Mon Oct 28, 2024 12:41 pm
dolphin_oracle wrote: Mon Oct 28, 2024 11:38 am
mxfb-menu-generator, modified to make a MX-Tools menu entry.
Does this mean we will have an MX Tools category in the full menu file? (I'm looking at the code and think I see the changes but I'm not sure)
that's the idea
That looks great and includes other entries I didn't move over.

Re: mxfb-2025 development ideas
Posted: Mon Oct 28, 2024 11:44 pm
by i_ri
Hello Jerry3904
hello dolphin_oracle
mxfb-menu-generator
When mxfluxbox is not alone, when non-fluxbox menu items are introduced,
giving a method to suppress some of the menu items is post August 27:
viewtopic.php?p=788846#p788846
Thanks for the work dolphin_oracle and while you are into menu-generator will you add a matching [end] for the [begin]
somewhere after create last submenu done fi.
Code: Select all
sed -i '/MX-Live/d' ~/.fluxbox/pre-global-menu.txt
sed -i '/MX-Maintenance/d' ~/.fluxbox/pre-global-menu.txt
sed -i '/MX-Setup/d' ~/.fluxbox/pre-global-menu.txt
sed -i '/MX-Software/d' ~/.fluxbox/pre-global-menu.txt
sed -i '/MX-Utilities/d' ~/.fluxbox/pre-global-menu.txt
#check if the file is not empty, create last submenu and populate it
file="~/.fluxbox/pre-global-menu.txt"
if [ -s "$file" ]
then
note="empty file, do nothing"
else
echo "[submenu] ($(gettext "Other"))" >> $FILE
while read p; do
echo $p >> $FILE
done <~/.fluxbox/pre-global-menu.txt ;
echo '[end]' >> $FILE
fi
echo '[end]' >> $FILE
###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"
Re: mxfb-2025 development ideas
Posted: Tue Oct 29, 2024 9:44 am
by dolphin_oracle
i_ri wrote: Tue Aug 27, 2024 8:09 am
Hello Jerry3904
mxfb-menu-generator
Code: Select all
onlyshowin=$(grep -o -m 1 'OnlyShowIn=.*' "$file")
if [[ $onlyshowin != "" ]]; then
nodisplay=rue
fi
inserted at lines 136-139
Code: Select all
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")
nodisplay=$(grep -o -m 1 'NoDisplay=.*' "$file")
onlyshowin=$(grep -o -m 1 'OnlyShowIn=.*' "$file")
if [[ $onlyshowin != "" ]]; then
nodisplay=rue
fi
if [[ $nodisplay == *"rue"* ]]; then
Note="not adding this entry to menu because it has a nodisplay flag"
else
echo "[exec] ("$name ")" "{" $command "}" $categories
fi
If OnlyShowIn has value, then trigger do not-print [Note] switch.
Presumably the OnlyShowIn might be valid for some value.
Re: mxfb-2025 development ideas
Posted: Tue Oct 29, 2024 9:48 am
by dolphin_oracle
which reminds me @Jerry3904 @Melber many of the fluxbox specific desktop files have a "ShowOnly" item. this is not correct usage, should be "OnlyShowIn". Also, possibly "NotShowIn" if you want something to not show on a particular desktop but do show on others.
Re: mxfb-2025 development ideas
Posted: Tue Oct 29, 2024 10:14 am
by dolphin_oracle
@i_ri
Code: Select all
#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 [ -z "$(echo $onlyshowin |grep -i fluxbox)" ]; then
nodisplay=true
fi
fi
if [ -n "$notshowin" ]; then
if [ -n "$(echo $notshowin |grep -i fluxbox)" ]; then
nodisplay=true
fi
fi
if [[ $nodisplay == *"rue"* ]]; then
Note="not adding this entry to menu because it has a nodisplay flag"
else
echo "[exec] ("$name ")" "{" $command "}" $categories
fi
fi