Forum › Forums › antiX-development › Graphics › Light weight screenshot and annotate combo
- This topic has 315 replies, 10 voices, and was last updated Aug 23-5:44 pm by BobC.
-
AuthorPosts
-
June 14, 2021 at 2:43 am #61637
Anonymous
::Skidoo, I’ve opened a separate tab for your post to remind myself to come back and follow the links…
That post containing links is probably held by spamfilter and is visible only to Moderators.
June 14, 2021 at 3:30 am #61639ModeratorBobC
::Very odd, The post is not marked as spam, yet disappeared. This was skidoo’s post:
skidoo wrote:
Working from examples does no good if the examples are not examples of “best practices”
unsure how narrowly I should quote here
.
Working from examples does no good if the examples are not examples of “best practices” that can be copied and tweakedIn some programming domains, BestPractices nowadays too often parrots//follows https://en.wikipedia.org/wiki/Cargo_cult_programming
“code search” websites enable you to see various ways others have approached a task (real world usage examples, vs text cookbook examples)
stackexchange, serverfault, askubuntu -ish Q & A sites enable you to see various approaches along with a measure of consensus (or lack thereof) for howto approach a given task
a couple more bookmarks candidates:
https://www.commandlinefu.com
http://shelldorado.com/links/index.html#archivesTL;DR
and
bropages
and
https://www.mankier.com
strive to present examples supplemental to manpagesv——– check out this interactive site :
https://explainshell.com/June 14, 2021 at 3:51 am #61641Anonymous
::reposting a couple of lost-in-transit links from that post
tldr https://github.com/tldr-pages/tldr/wiki/tldr-pages-clients
and
https://bropages.orgJune 15, 2021 at 7:43 am #61711Member
ile
::https://www.man7.org/linux/man-pages/man1/dash.1.html
Hello BobC and everyone
sample antixscreenshotsterscr
scrot 1.4 and newer.Select thumbnail Yes check And No check
the mtpaint pre-save view is name thumb.
When No thumb is selected, thumb is full size.
choose save plus Yes thumbnail, thumb is saved as min.
choose save when No thumb is selected and no thumb is saved.
choose cancel there is nothing saved,
so either way , the mtpaint pre-save window is pre-named thumb for File Save, but unsaved.
It thinks it is saved (it was saved when it was opened); it will not warn unsaved
when quitting an mtpaint pre-save thumb window that has had no changes.Screenshot quality control.
antixscreenshotster image.
antixscreenshotsterscr. s,h as zipJune 16, 2021 at 1:06 pm #61793Member
ile
::Hello BobC and everyone
The wbction series is based on BobC’ of 0502.
updated antixscreenshotwbction with p and b on front page Dialog.
Second Dialog, Actions, changed xdg-open viewer to <Mirage>, so that a claim of “Edit and Actions” could be offered.
Explanatory Actions; dressed to nil.
Plain Actions, in the script yet. [images.]
The timer delay is for the case when
full quality, full screen, even two displys, with full size thumbnail copy,
and maybe all the checkboxes are marked,
needs time to process before applications try to open the files;
suffer the sleep even for the tiny Shots.antixscreenshotwbctionqqcbp. s,h as zip
June 17, 2021 at 3:02 am #61848ModeratorBobC
::Ile, I did a retest of my most recent version antixscreenshot-20210612b.zip from the bottom of page 16 with and without thumb, with thumb percentage the same and changed, both saving and not saving, and didn’t find a problem.
Did anyone find any problems or have any complaints about how that works?
I had added the “note” functionality after adding the help screen. Were there any complaints about the way its setup? I never did find out where antiX gets it’s default font, and not using international characters, I’m not familiar with what font would be most generic or how to select a good one. I would be happy to build that into the defaults if I knew where to get it. I also would like to add a few lines of documentation to explain the note related functionality, but would rather wait till the design and functionality has “jelled” before I add any documentation for it. In my view of the world, If I was adding a note like that to a screenshot, it might be text, or maybe a date, or maybe a combination of text and date. Should I allow one to add text and have a flag that says add the current date:time to my text?
As for Bash scripting skills, I found some Bash tutorial videos and to be honest I don’t know which ones are better or worse, but I’m just going to watch a couple while I ride my stationary exercise bike (I need the exercise) and just try to notice how the syntax is constructed and what different functionalities are available in hopes I’ll remember seeing them when I need them. I’m just too mentally drained after working all day to read much, and so need to find a way to learn it a bit at a time fast enough that I can make it through the available syntax and still recall a good percentage of what I saw.
I don’t think I was wrong to work on this based on the existing antixscreenshot program. The code was there to look at, copy and change, and worked for taking basic screenshots. So it had the basic functionality, but was missing the bells and whistles that would make it efficient for me (or others) to use.
June 17, 2021 at 4:20 am #61853Anonymous
::Did anyone find any problems or have any complaints about how that works?
In the last run, I found no bugs, so have no “complaints”. Give yourself credit ~~ meshing the workflow with mtpaint, imgur, etc. is quite an accomplishment. Publish, move on to some other project. Maybe glance back on the code 3 months from now, fresh eyes, maybe you’ll find a detail or two you’ll want to change.
June 17, 2021 at 11:21 am #61866ModeratorBobC
::Ok, I added the automatic Date:Time option (pretty simple), improved the help text, and retested. The Actions dialog hasn’t changed at all.
BTW, thumbnails are not limited to 100% of original size. I tested it at 150%. That was always there but not documented or tested.
Also, if MTPaint or GIMP are used to Save and Open, and a thumb was selected, both pictures are opened since those two programs can handle opening more than one.Would someone please try it in another language, note whether my date format is ok on the date:time stamp option, and make any suggestions related to a default font that would be good for most people?
Translations will need to be done…
- This reply was modified 1 year, 10 months ago by BobC.
June 17, 2021 at 3:13 pm #61881Member
ile
::June 17
Hello BobC and everyoneGuaranteed Overwrite protection is paramount to the usability of Screenshot.
The use of a timestamp naming convention, a second in the year, guarantees overwrite protection and protection for blank name.
The Screenshot use of the naming convention name and counter, append numerals,currently lacks overwrite protection for ” -thumb.”
A solution to check for existing -thumb is necessary,
in the name plus ” +counter” versions of Screenshot.Can a solution be provided?
Your method? Proposal?
We are obligated to prepare a guarantee for overwrite protection in Screenshot.
Please.this “antixscreenshot, count on it(?)” is modified with
Changes to “function choose_dir” and “function save_shot.”The focus of this trial script is to test if it guarantees overwrite protection.
Does this script guarantee overwrite protection?
using “name plus counter” check for existing.
Does it provide protection for blank name?antixscreenshotcount. s,h as zip
Attachments:
June 17, 2021 at 4:08 pm #61887June 17, 2021 at 7:48 pm #61893ModeratorBobC
::I had left the naming and counter naming and thumb naming as it was, and only added an option to bypass the YAD popup question to safe time and clicking.
I could change it to instead suffix all file names with -CCYYMMDD-HHMMSS where the time and date are when the screenshot was taken. That would mean I would remove the counter option and functionality entirely. I could probably remove the century CC from that if people feel its too long.
Is that what everyone wants?
For the font, I need the actual file name that antiX uses as its default. I never noticed that file in the font directories I was looking in.
June 17, 2021 at 8:12 pm #61894Anonymous
::For the font, I need the actual file name that antiX uses as its default.
No, that would be “brittle”. Don’t presume the “Day1 antiX default theme+font” has not been changed, or uninstalled.
Also the “print-gtk()” routine within env-info script mentioned by ile, it only consults ~/.gtkrc-2.0 (?are we certain that governs the default font applied within yad?)
time and date are when the screenshot was taken
instead of using a “counter”, to wind up with localized date and time plus unique filename string, you can
$(date +%F__%H-%M_%S)
and append “-thumb” for the matching thumbnailJune 18, 2021 at 10:16 pm #61942ModeratorBobC
::Skidoo, the name got pretty long that way, so I reduced the spacing. See new version in zip file.
What should I put in for a default font? We need to put something in that will work for the vast majority of people, at least well enough that they can figure out what to replace it with if we can’t come up with a good setting that I can fill in for them.
Attachments:
June 19, 2021 at 2:42 am #61945Member
ile
::Hello BobC
Wearing of Name badge?These lines for id. are the start of Action Dialog in shot_taken. Added first, the frame.
Top or tucked between Take another screenshot and Exit without saving?function shot_taken { if [ "$ALREADY_SAVED" = "false" ] ; then WORKING_DELETED=Negative else WORKING_DELETED=Affirmative fi SAVE_STATUS="$WORKING_DELETED" if [ "$ALREADY_SAVED" = "false" ] ; then ALFILE="$WORKING_DIR"/"$NAME"."$EXT" else ALFILE="$file_name" fi export ACTION=$(cat <<End_of_Text <window title="antiXscreenshot Action" window-position="1"> <vbox> <hbox> <vbox> <frame Saved Status: $SAVE_STATUS> <text use-markup="true" width-chars="35"> <label>"$ALFILE"</label> </text> </frame> <frame <code>gettext $"Action"</code>> <radiobutton active="true"> <label>"<code>gettext $"Save and Open Printer Dialog"</code>"</label>June 19, 2021 at 8:42 am #61952Member
ile
::Hello BobC and everyone
humor. Is it appropriate to put a lot of screenshots into Help? /humor.The antiXscreenshot Action Dialog button Save and Open folder in File manager
The RADIOBUTTON_FILEMANAGER button command.To have it open a new window instead of a new tab
is the task desired, if a spacefm window is already open.
Can you show how to do this task?This has been trialed by stating it many ways,
result is that it works in the various Desktops except rox-flux, fluxbox.
fluxbox’ final word is to open with default. rox-filer; nobody will notice this; rox-fluxbox, fluxbox rox default will not open a spacefm window if there is already a spacefm window. (nobody in rox-flux, fluxbox will notice that; the use case is not on the chart? (half the answer. ai. it did not open a new tab in spacefm. hmmm.) 8-| )
rox-jwm, jwm does it and rox-icewm, icewm does it, new spacefm window will open if there is already a spacefm window.
A rather selfish addition for spacefm. It was easy to make it work for space users. difficult to have it work for all users, hidden, not to notice the selfish new spacefm window wanted from the button.# open file manager to the folder if [ "$RADIOBUTTON_FILEMANAGER" = "true" ] ; then WINID=$(wmctrl -lx | awk '/0 spacefm./ {print $1}') if ! [ $WINID ] ; then desktop-defaults-run -fm --follow $SAVE_DIR else spacefm -w "$SAVE_DIR" fi fi -
AuthorPosts
- You must be logged in to reply to this topic.









