Page 2 of 7

Re: Settings Manager

Posted: Wed Jul 14, 2021 8:39 pm
by dolphin_oracle
i think that iconbox idea is great. makes it much easier to set up.

for example, I displayed the contents of my /home/dolphin/.local/share/applications directory.

Code: Select all

yad --icons --read-dir=/home/dolphin/.local/share/applications --scroll
and it displays each of the items in an icon box, just like xfce settings manager. or at least close enough.

Re: Settings Manager

Posted: Wed Jul 14, 2021 9:00 pm
by Jerry3904
That does look nice, I'll have to take a second round with it.

Re: Settings Manager

Posted: Thu Jul 15, 2021 12:30 am
by AVLinux
Hi,

Here is a quickly done example of a Yad launcher dialog for MX-FB, the nice thing about this is the tooltips and stuff like that all look after themselves. It's just a script that points to the directory your launchers are in and the launchers just need to meet the minimum freedesktop.org specs and be a few relevant lines. Obviously my theming is different and I'm using the Papirus Icons but the more generic and stock you keep the icon names the more compatible with all potential themes this will be. No messing around with buttons and arrays and all that jazz, just have your launcher point to the program or script you want to run.
MXFB.png

Script is attached here:
MX-FB.zip

Re: Settings Manager

Posted: Thu Jul 15, 2021 4:10 am
by kobaian
AVLinux wrote: Thu Jul 15, 2021 12:30 am Hi,

Here is a quickly done example of a Yad launcher dialog for MX-FB, the nice thing about this is the tooltips and stuff like that all look after themselves. It's just a script that points to the directory your launchers are in and the launchers just need to meet the minimum freedesktop.org specs and be a few relevant lines. Obviously my theming is different and I'm using the Papirus Icons but the more generic and stock you keep the icon names the more compatible with all potential themes this will be. No messing around with buttons and arrays and all that jazz, just have your launcher point to the program or script you want to run.

MXFB.png


Script is attached here:
MX-FB.zip
This one looks very nice!
I think the idea of using an iconbox for MXFB-settings is really good. It is simple and allows users to add another launchers without changing the script itself.
I think the activators for "LX-appearance", "LightDM GTK+ Greeter", "Adblock", "Gufw Firewall" and "User-accounts" should be added.

Re: Settings Manager

Posted: Thu Jul 15, 2021 5:18 am
by Jerry3904
AVLinux wrote: Thu Jul 15, 2021 12:30 am Hi,

Here is a quickly done example of a Yad launcher dialog for MX-FB, the nice thing about this is the tooltips and stuff like that all look after themselves. It's just a script that points to the directory your launchers are in and the launchers just need to meet the minimum freedesktop.org specs and be a few relevant lines. Obviously my theming is different and I'm using the Papirus Icons but the more generic and stock you keep the icon names the more compatible with all potential themes this will be. No messing around with buttons and arrays and all that jazz, just have your launcher point to the program or script you want to run.

MXFB.png


Script is attached here:
MX-FB.zip
Thanks! I'm in the field for work all day, but will take a look tonight.

Re: Settings Manager

Posted: Thu Jul 15, 2021 7:02 am
by kobaian
AVLinux wrote: Thu Jul 15, 2021 12:30 am Script is attached here:
MX-FB.zip
I like your work, but there is one small problem with one of your desktop files. The proper path to Tint2 settings is "tint2conf" not "tint2". ;)

I've made another one iconbox for myself with a "cancel" and a "fluxbox-folder" button:

Image

Code: Select all

#!/usr/bin/bash

yad --title="System Settings" --window-icon=desktop --width=700 --height=450 --center --borders=12 \
	--text="<b>MX-Fluxbox System Settings</b>" \
	--icons --read-dir="$HOME/.fluxbox/settings/" \
	--button="Fluxbox configuration files!desktop!Launches the ~/.fluxbox folder in Thunar:2" \
	--button="gtk-cancel:1"

ret=$?

[[ $ret -eq 1 ]] && exit 0

if [[ $ret -eq 2 ]]; then
    thunar $HOME/.fluxbox && exit 0
fi

Re: Settings Manager

Posted: Thu Jul 15, 2021 8:19 am
by dolphin_oracle
if the settings manager tool goes forward, @Jerry3904 , please put the desktop files somewhere other than /home. that way they can be added to or updated without hassle.

Re: Settings Manager

Posted: Thu Jul 15, 2021 8:29 am
by Jerry3904
Yup, I was thinking of a folder in /user/share/applications

Re: Settings Manager

Posted: Thu Jul 15, 2021 8:32 am
by dolphin_oracle
Jerry3904 wrote: Thu Jul 15, 2021 8:29 am Yup, I was thinking of a folder in /user/share/applications
probably a bad spot. /usr/share/applications subfolders get picked up by the various menus/rofi/appfinders so we would get duplicates. probably better in something like /usr/share/mx-fluxbox-setttings-manager or something like that.

a lot of apps do this. kde puts desktop files all over the place.

Re: Settings Manager

Posted: Thu Jul 15, 2021 8:35 am
by AVLinux
kobaian wrote: Thu Jul 15, 2021 7:02 am
I like your work, but there is one small problem with one of your desktop files. The proper path to Tint2 settings is "tint2conf" not "tint2". ;)
Oops, sorry!

It was just rough outline for an example really, I use XFCE4 with Openbox so I had to guess at the tint2 command in the example launcher. I'm sure in the end there are many more things to add and refinements like you have made in yours which looks great!