Sort and improve readability of init

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
User avatar
Melber
Developer
Posts: 1350
Joined: Tue Mar 23, 2021 4:19 pm

Re: Sort and improve readability of init

#11 Post by Melber »

Confirm Cees' toolbar placement rewrites the init file.

Changing the fb-style with mx-tweak also results in an unordered init

User avatar
ceeslans
Posts: 832
Joined: Sun Apr 14, 2019 3:48 am

Re: Sort and improve readability of init

#12 Post by ceeslans »

Melber wrote: Sun Feb 23, 2025 2:39 pmConfirm Cees' toolbar placement rewrites the init file.
Changing the fb-style with mx-tweak also results in an unordered init
Thank you (thought I'd gone bonkers)
Last edited by ceeslans on Sun Feb 23, 2025 3:22 pm, edited 1 time in total.
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

Nokkaelaein
Posts: 338
Joined: Fri Jul 17, 2020 10:32 am

Re: Sort and improve readability of init

#13 Post by Nokkaelaein »

Confirmed here as well!

The behavior seems to be: if configuring Fluxbox via the textfiles (i.e. changing the toolbar.placement directly in a text editor) it just never mucks up the init when reloading. Otherwise this would have been evident here as I configure directly via textfiles. Conversely, it seems when configuring it using the menu, it mucks the init up immediately :P when clicking on the menu entry (i.e. a new position for the toolbar), no reloading required.
Last edited by Nokkaelaein on Sun Feb 23, 2025 3:04 pm, edited 1 time in total.

User avatar
Melber
Developer
Posts: 1350
Joined: Tue Mar 23, 2021 4:19 pm

Re: Sort and improve readability of init

#14 Post by Melber »

seems like rootMenu --> Settings --> Configure --> anything results in an init rewrite

Nokkaelaein
Posts: 338
Joined: Fri Jul 17, 2020 10:32 am

Re: Sort and improve readability of init

#15 Post by Nokkaelaein »

Melber wrote: Sun Feb 23, 2025 3:04 pm seems like rootMenu --> Settings --> Configure --> anything results in an init rewrite
Yeah it looks like just blurts out all settings anew into the file, in the predetermined order it's made to do so :-]

User avatar
Jerry3904
Administrator
Posts: 23315
Joined: Wed Jul 19, 2006 6:13 am

Re: Sort and improve readability of init

#16 Post by Jerry3904 »

I have always just used the text files + , so have never seen this problem.

BTW
1) the problem is not in the refresh/reconfigure coding, as I first thought, because if I open the init file and make a change using the menu path, I see that the scramble has already taken place.
2) it also doesn't seem to be a return to fundamental template, as far as I can tell: the init in /etx/X11/Fluxbox is very simple
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Nokkaelaein
Posts: 338
Joined: Fri Jul 17, 2020 10:32 am

Re: Sort and improve readability of init

#17 Post by Nokkaelaein »

Jerry3904 wrote: Sun Feb 23, 2025 3:48 pm I have always just used the text files + , so have never seen this problem.
Yep, same here.

User avatar
ceeslans
Posts: 832
Joined: Sun Apr 14, 2019 3:48 am

Re: Sort and improve readability of init

#18 Post by ceeslans »

Changing the fb-style with mx-tweak also results in an unordered init
@Melber's observation should be reason enough to disregard the categorized structure for MX25 - or at least for now, until one can find out how to address this basic fluxbox rewrite process
Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

User avatar
Jerry3904
Administrator
Posts: 23315
Joined: Wed Jul 19, 2006 6:13 am

Re: Sort and improve readability of init

#19 Post by Jerry3904 »

I never had that entire submenu in MXFB until MX-23, and am now thinking of taking it back out--at least for myself.

The entries in our Menu > Settings > Configure (except the last)all bring up the relevant file in the text editor, where changes do not rearrange init that I have seen. Rearrangement only happens if you go through Menu > Settings > Configure > Window, that name being my renaming of the Fluxbox "Configure."

I could imagine a script "config_init_restore" that began by backing up the current init to ~/.restore/fluxbox/ then launched that handy little Window/Configure entry (moved out of the menu to ~/.fluxbix/submenus/) and then finished by restoring the backed up init after using sed to update the changed values. Not sure ATM how that would co-exist with the text editor method.
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

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

Re: Sort and improve readability of init

#20 Post by siamhie »

I prefer going through the root menu as apposed to editing the init file directly.
When setting the opacity of menus, windows and toolbars, it's a simple as scrolling the mouse wheel up and down.


Image
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.

Post Reply

Return to “MX Fluxbox Official Release”