Page 3 of 22

Re: mxfb-2025 development ideas

Posted: Sat Aug 17, 2024 9:15 pm
by i_ri
Hello Jerry3904 and Everyone
Not intended to replace the fluxbox alt+d.
show desktop behavior supplement
Sample

Code: Select all

Control Mod1 Up :ToggleCmd {MacroCmd {ShowDesktop} {Deiconify}} {ForEach {Deiconify}} 
It has one vulnerability. That vulnerability is xfce4-panel.
Screenshot by Melber shows a fluxbox with xfce4-panel;
maybe Melber found the vulnerability. Running a xfce4-panel
alternates focus between one xfce4 and one tint2 panel. When they trade places there is a dead end with no tint2 on the screen.

There is a workaround for multiple instances of xfce4-panel and multiple tint2.
Editing the command by adding the Deiconify for each xfce and tint2 panel.
Began with one tint2 so there is one Deiconify. Deiconify is short for Deiconify LastWorkspace Current.
The tint2 panel and one xfce4-panel is two Deiconify. gkrellm remains visible upon Desktop.

Code: Select all

Control Mod1 Up :ToggleCmd {MacroCmd {ShowDesktop} {Deiconify}{Deiconify} {Activate (gkrellm)} } {ForEach {Deiconify}} 
Each xfce4-panel will have a Deiconify.
Each tint2 will have a Deiconify.
Show them all, so they will not alternate visibilty.
The adjusted quantity of Deiconify keeps tint2 visible.

With this workaround the sample command can
support multiple instances of everything. Increase chance of the unanticipated. Experiment(?) beyond predictable is too many.

((tested (filter) with some programs does work to activate, raise, focus, stuff to keep visible some magnifier, on screen keyboard, gkrellm, some successes where tint2 and conky not responding similarly to filter. ))
ShowDesktop in some commands it will ignore anything after it; so trialing ForEach Iconify is at hand for trial; the ShowDesktop seems to work here.
sometimes commands after showdesktop do not run; trade-off the opposing drawback with foreach iconify is the double bracket can be read as the end of the macrocmd(?)
This is running two tint2 and two xfce4-panel, so there is four Deiconify.

Code: Select all

Control Mod1 Up :ToggleCmd {MacroCmd {ForEach {Iconify} } {Deiconify} {Deiconify} {Deiconify} {Deiconify} } {ForEach {Deiconify}} 

Control Mod1 Up :ToggleCmd {MacroCmd {ShowDesktop} {Deiconify} {Deiconify} {Deiconify} {Deiconify} } {ForEach {Deiconify}} 
Two different commands for minimize all windows and for maximize all windows
on a toggle can lead to having the toggle loaded to maximize instead of minimize when you are expecting minimize. accept that it takes two clicks sometimes when on a toggle.

Untoggle. The two different commands on a tint2 button can be separate as different mouse actions on the same one button. one action for windows down. one action for windows up. down is the intent of the button as show desktop.

Re: mxfb-2025 development ideas

Posted: Sun Aug 25, 2024 7:09 pm
by Melber
Melber wrote: Thu Aug 15, 2024 6:20 am Perhaps add an exit-options tab to the app-finder rofi?
something like this?

240826-rofi-exit-options.png

Re: mxfb-2025 development ideas

Posted: Sun Aug 25, 2024 8:37 pm
by Jerry3904
That's handsome!

Re: mxfb-2025 development ideas

Posted: Tue Aug 27, 2024 8:09 am
by i_ri
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.
Unsure the extent of what it blocks.
The xfce "Log Out" i really wanted it gone from mxfluxbox menu. (xfce Log Out is in rofi too.)
Trial on mxfluxbox session alongside KDE, Mate, XFCE this blocked menu item System >Log Out. Log Out is xfce4 logout. Blocked Panel [XFCE], KDE menu editor.
Trial on mxfluxbox session alongside XFCE this blocked menu items Log Out [xfce4-session-logout] and About XFCE.
Trial on straight up MX23mxfluxbox seems harmless. Not a difference.

Re: mxfb-2025 development ideas

Posted: Wed Aug 28, 2024 5:27 pm
by siamhie
@Jerry3904 Regarding post #2 (submenu for mx-tools), this is what I had in mind.

Code: Select all

[submenu] (MX Tools)
[exec] (About MX Linux ) { mx-welcome --about } Categories=GNOME;GTK;System;MX-Setup;
[exec] (MX Boot Options ) { mx-boot-options } Categories=GNOME;GTK;System;MX-Maintenance
[exec] (MX Boot Repair ) { mx-boot-repair } Categories=System;MX-Maintenance;
[exec] (MX Cleanup ) { mx-cleanup } Categories=System;MX-Maintenance
[exec] (MX Comfort ) { mxfb-comfort } Categories=System;
[exec] (MX Conky ) { mx-conky } Categories=GNOME;GTK;System;MX-Setup
[exec] (MX Date & Time ) { mx-datetime } Categories=GNOME;GTK;System;MX-Setup;
[exec] (MX Dockmaker ) { mx-dockmaker } Categories=System;MX-Utilities;
[exec] (MX Fix GPG keys ) { x-terminal-emulator -e pkexec checkaptgpg --wait-at-end } Categories=PackageManager;System;MX-Software;
[exec] (MX Idesktool ) { mx-idesktool } Categories=System; MX-Utilities
[exec] (MX Live USB Maker ) { mx-live-usb-maker } Categories=System;MX-Live;
[exec] (MX Locale ) { mx-locale } Categories=System;MX-Setup;X-antiX;
[exec] (MX Network Assistant ) { mx-network-assistant } Categories=System;MX-Setup;
[exec] (MX Package Installer ) { mx-packageinstaller } Categories=System;MX-Software;
[exec] (MX RemasterCC ) { mx-remastercc } Categories=GNOME;GTK;System;MX-Live
[exec] (MX Repo Manager ) { mx-repo-manager } Categories=GNOME;GTK;System;MX-Software;
[exec] (MX Select Sound ) { mx-select-sound } Categories=GNOME;GTK;System;MX-Setup
[exec] (MX Service Manager ) { mx-service-manager } Categories=GNOME;GTK;System;MX-Maintenance;
[exec] (MX Snapshot ) { mx-snapshot } Categories=GNOME;GTK;System;MX-Live;
[exec] (MX Tools ) { mx-tools } Categories=XFCE;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;
[exec] (MX Tour ) { mx-tour } Categories=System;MX-Setup;
[exec] (MX Tweak ) { mx-tweak } Categories=XFCE;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;MX-Setup;
[exec] (MX USB Unmounter ) { mx-usb-unmounter } Categories=System
[exec] (MX User Manager ) { mx-user } Categories=System;MX-Maintenance;
[exec] (MX User Manual ) { mx-manual } Categories=System;
[exec] (MX Viewer ) { mx-viewer  } Categories=Qt;Network;Utilities;
[exec] (MX Welcome ) { mx-welcome } Categories=GNOME;GTK;System;MX-Setup;

Re: mxfb-2025 development ideas

Posted: Wed Aug 28, 2024 5:33 pm
by siamhie
There are duplicate entries within the submenus.

Code: Select all

Advanced Network Configuration { nm-connection-editor }
[submenu] (Internet)
[submenu] (Settings)


Conky Toggle { conkytoggle.sh }
[submenu] (Accessories)
[submenu] (System)


Hardinfo2 { hardinfo2 }
[submenu] (Accessories)
[submenu] (System)


LightDM GTK+ Greeter settings { lightdm-gtk-greeter-settings-pkexec }
[submenu] (Accessories)
[submenu] (System)
[submenu] (Settings)


Midnight Commander { x-terminal-emulator -e mc }
[submenu] (Accessories)
[submenu] (System)


MX Network Assistant { mx-network-assistant }
[submenu] (Internet)
[submenu] (System)


nitrogen { nitrogen }
[submenu] (Accessories)
[submenu] (System) <---listed as Backgrounds { nitrogen }
[submenu] (Settings)


Passwords and Keys { seahorse  }
[submenu] (Accessories)
[submenu] (Settings)


PulseAudio Volume Control { pavucontrol }
[submenu] (Multimedia)
[submenu] (Settings)


ROXTerm { roxterm }
[submenu] (Accessories)
[submenu] (System)


Settings Manager { custom-toolbox /etc/custom-toolbox/mxfb-settings.list }
[submenu] (System)
[submenu] (Settings)


Synaptic Package Manager { synaptic-pkexec }
[submenu] (System)
[submenu] (Settings)


System Keyboard { system-keyboard-qt-launcher }
[submenu] (System)
[submenu] (Settings)


Thunar File Manager { thunar  }
[submenu] (Accessories)
[submenu] (System)



VirtualBox { VirtualBox  }
[submenu] (Accessories)
[submenu] (System)


Xfburn { xfburn }
[submenu] (Accessories)
[submenu] (Multimedia)

Re: mxfb-2025 development ideas

Posted: Wed Aug 28, 2024 5:43 pm
by Jerry3904
Thanks. It's the script that produces that submenu which s the problem that I see--but I don't even intend to start looking at this seriously for quite a while.

Re: mxfb-2025 development ideas

Posted: Wed Aug 28, 2024 5:50 pm
by siamhie
Could we have an option to move the exit-options bar around?
(and maybe select which icons to show...I only use suspend, restart and shutdown)


Image

Re: mxfb-2025 development ideas

Posted: Wed Aug 28, 2024 5:51 pm
by siamhie
Jerry3904 wrote: Wed Aug 28, 2024 5:43 pm Thanks. It's the script that produces that submenu which s the problem that I see--but I don't even intend to start looking at this seriously for quite a while.

That's OK. I thought that if I posted in this thread, it could be referenced at a later time.

Re: mxfb-2025 development ideas

Posted: Wed Aug 28, 2024 6:04 pm
by Jerry3904
Sure can.