Page 16 of 32

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 12:06 pm
by Jerry3904
dolphin_oracle wrote: Wed May 10, 2023 11:21 am no I mean the localized menu files that localize-menu-mx brings in should point to localized submenus. right now they don't.
Feeling dense: modify the localize-menu-mx script like this (to begin with)?

Code: Select all

# fluxbox init file
INIT="$HOME/.fluxbox/init"
# default menu for all none-translated locale
DFLT="$HOME/.fluxbox/menu-mx"
# default menu for all none-translated locale
DFLT_APP="$HOME/.fluxbox/submenu/appearances"
# default menu for all none-translated locale
DFLT_OUT_OF_SIGHT="$HOME/.fluxbox/submenu/out_of_sight"
# directory of localized menus 
DFLT_SETTINGS="$HOME/.fluxbox/submenu/appearances"
# default menu for all none-translated locale
L10N="/usr/share/mxflux/menu-translations"

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 12:17 pm
by dolphin_oracle
no.

let's take spanish (es) as an example


in the menu-mx_es file, instead of pointing the submenus to ~/.fluxbox/submenus/appearances point to /usr/share/mxflux/menu/menu-translations/appearances_es or wherever the actual localized submenus happen to be.

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 1:18 pm
by siamhie
Jerry3904 wrote: Wed May 10, 2023 11:18 am Thanks to both; we're aware of the problem. It's unclear why it suddenly started not working, since the code works in a terminal. I suspect that the syntax may now be faulty for some reason...

@Jerry3904 When I run the command in a terminal I got an error that the run mode wasn't enabled. I added it to the rasi file but it still doesn't make sense why it won't launch from the root menu.


Image

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 2:39 pm
by siamhie
@Jerry3904 I got the Run entry in the root menu to work.

Change this

Code: Select all

[exec] (Run) {rofi -show run -theme ~/.config/rofi/themes/MX-run.rasi -run-shell-command 'rofi-sensible-terminal -e bash -c "{cmd} && read"'}
to this

Code: Select all

[exec] (Run) {rofi -show run -theme ~/.config/rofi/themes/MX-run.rasi}

Make sure to edit the config.rasi file to include the run mode.

Code: Select all

configuration {
	
modi: "run,drun,filebrowser,window,help:/usr/share/rofi/rofi-help";
	show-icons: true;
	icon-theme: "papirus";
	//fake-transparency: true; << rofi 1.7 may require a compositor
	//sidebar-mode: true;
}

@import "/mxrm-settings/display0.rasi"

@theme "MX-comfort.rasi"

//@import "/mxrm-settings/mxrm-settings.rasi"

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 2:55 pm
by ceeslans
@Jerry3904 @Melber What is the function of the 2nd part of the command, ie -run-shell-command 'rofi-sensible-terminal -e bash -c "{cmd} && read"'
Is this essential for specific command execution?

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 3:18 pm
by Jerry3904
That's what gives us the option of opening in a terminal, so I could launch any app that needed sudo for instance. Was working fine.

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 3:21 pm
by ceeslans
I wrapped the original command in a small script that can be called from the rootMenu to start the run-box:

~/bin/rofi-mxrun

Code: Select all

#!/bin/bash

##start the standalone mx-run box
rofi -show run -theme ~/.config/rofi/themes/MX-run.rasi -run-shell-command 'rofi-sensible-terminal -e bash -c "{cmd} && read"' 
in menu-mx:

Code: Select all

[exec] (Run) {~/bin/rofi-mxrun}
... just until some one comes up with the ultimate exec command ...

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 3:42 pm
by Jerry3904
Thanks, I was thinking of going that route.

EDIT: tested it, worked fine (just like it always has in the terminal). Named it "mxfb-rofirun" and just used that name in Startup: Ctrl F2 entry. Located it in mxfb-accessories, uploaded to MX repo.

Also updated the menu-mx in mx-fluxbox and uploaded.

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 5:03 pm
by Melber
Yep, I was testing too.
Works fine, thanks ceeslans.

Re: MX-23_fluxbox_alpha2_x64 released for testing

Posted: Wed May 10, 2023 5:13 pm
by Melber
kobaian wrote: Wed May 10, 2023 12:19 am 6. The help icon in the dock does nothing after clicking it.
@kobaian
I presume you are using PL as system language. I had the same issue in German.
The file it's looking for doesn't exist (yet).
Rename /usr/share/mxflux/help/mxfl-docs_EN.pdf to /usr/share/mxflux/help/mxfl-docs_PL.pdf and the dock button should open it.