Page 3 of 7
Re: Settings Manager
Posted: Thu Jul 15, 2021 5:26 pm
by Jerry3904
I just snooped around, and somebody named "seaside" on
a 10-yr old Puppy thread came up with a very cool selection tool to create what he calls a "toolbar." Might prove handy.
Code: Select all
#!/bin/sh
TOOLBAR="$HOME/Scripts/MX-FB/mxfb"
yad --title="Toolbar (double-click to run)" --center --icons --read-dir="$TOOLBAR" \
--button="gtk-add:0" --button="gtk-delete:2" --button="gtk-cancel:1"
CHOICE=$?
[ $CHOICE -eq 0 ] && SEL=`ls /usr/share/applications | cut -d. -f1 | yad --separator=" " --height=300 --list --multiple --column="files"` && for i in $SEL;do ln -s /usr/share/applications/$i.desktop $TOOLBAR/$i.desktop; done
[ $CHOICE -eq 1 ] && exit 0
[ $CHOICE -eq 2 ] && DEL=`ls $TOOLBAR | cut -d. -f1 | yad --separator=" " --height=300 --list --multiple --column="files"` && for i in $DEL;do rm -f $TOOLBAR/$i.desktop; done
exec $0
Re: Settings Manager
Posted: Fri Jul 16, 2021 9:59 am
by AVLinux
Since I'm in the process of working on some yad utilities as well I thought I'd share this page:
http://smokey01.com/yad/
Many of the so-called yad tutorial pages are very complex and specific examples and that page starts with more general examples..
Also if there is interest, another handy feature of Yad is to open files types from a list dialog with an assigned command. When you are working with more openly text-driven Window Managers like Openbox and Fluxbox you often want to directly get to the config files to hand edit. I made a self-contained 'system editor' that opens files with featherpad for myself using this feature:
sysed.png
Obviously you would want to change the files to edit but it's handy for those who know they have to edit a config but may not know or remember where it is..
Script attached:
avl-mxe-sysed.zip
Of course you can also do text file editing directly with yad by finding a file and using the --editable variable which will present the file to be viewed and edited in a dialog window but any changes to make to the text are committed when you close the dialog without the extra safety layer of 'Save' or 'Save As' that comes by doing edits in a proper text editor..
Re: Settings Manager
Posted: Fri Jul 16, 2021 10:05 am
by Jerry3904
Thanks--I'm very familiar with the smokey01 document, having used it now for a couple of years. I have even started a document version to improve the formatting so it could be read more easily!
Re: Settings Manager
Posted: Fri Jul 16, 2021 10:08 am
by AVLinux
Jerry3904 wrote: Fri Jul 16, 2021 10:05 am
Thanks--I'm very familiar with the smokey01 document, having used it now for a couple of years. I have even started a document version to improve the formatting so it could be read more easily!
Great! Please share that doc when you're done, it would be a great resource since the smokey page is getting old..
Re: Settings Manager
Posted: Fri Jul 16, 2021 3:50 pm
by Jerry3904
Now exploring an app that Adrian had developed called custom-toolbox. Here is a look at my first futzing around:

Pretty sharp, huh? And easy to set up. It has some quirks and limitations, but my first impression is good.
Re: Settings Manager
Posted: Fri Jul 16, 2021 5:18 pm
by Adrian
Would you be interested to add a flag to hide "Edit" button? I realize that this might not be needed for an official tool (although I guess some people might like the flexibility to remove/add items).
Re: Settings Manager
Posted: Fri Jul 16, 2021 5:46 pm
by Jerry3904
Thanks. I want the user to be able to alter it.
I am putting together a list for you...
Re: Settings Manager
Posted: Fri Jul 16, 2021 5:58 pm
by i_ri
Jerry3904, Adrian
That is beautiful.
slam dunk it is the right choice.
Would you limit flexibility of adding things to the Personal category?
or allow control of all categories?
Print settings button or to the queue
What is printing? button.
Some can wish for accessibility settings at hand?
Does the help button show mx user manual? or edit Settings Manager instructions?
Re: Settings Manager
Posted: Fri Jul 16, 2021 6:03 pm
by Adrian
Does the help button show mx user manual? or edit Settings Manager instructions?
That's a good question, it shows a how-to for the custom-toolbox (the GUI that contains those items), not ideal, that should be configured too, I guess we can include a custom "help_url" or something like that in the config file.
Re: Settings Manager
Posted: Fri Jul 16, 2021 6:09 pm
by Jerry3904
We will need to work on the Help file...