.shot timer delay period, quickshot.

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
i_ri
Posts: 1136
Joined: Tue Jun 30, 2015 12:26 am

.shot timer delay period, quickshot.

#1 Post by i_ri »

.shot timer delay period, quick.notsoquickshot.shot
Hello Everyone
quickshot config file add/edit to OPTION -d 2.
fluxbox keys add/edit Delay microseconds to full screen shot.
# Control Mod1 x :Delay {exec mxfb-quickshot r jpg} 2000000

This sample uses bash sleep to delay the quickshot after keypress. This sample provides quick change to the sleep NNs seconds.
Save these entries into ~/.fluxbox/keys

Code: Select all

Control Mod1 x :Exec ~/.fluxbox/scripts/quicklessquick
Control Mod1 z :MacroCmd {exec quicklessquickperiod} {reconfig}
This sample destination is /usr/local/bin/quicklessquickperiod

Code: Select all

#!/bin/bash
            if ! [ -e $HOME/.fluxbox/scripts/quicklessquick ] ; then
            echo "sleep 2s && mxfb-quickshot r jpg" > $HOME/.fluxbox/scripts/quicklessquick
            fi
#           needs to be allowed executable, after creation. quicklessquick.             
me="$(basename "$0")";
running=$(ps h -C "${me}" | grep -wv $$ | wc -l);
[[ $running > 1 ]] &&wmctrl -R "sleep NNs  " && exit;

TMP_FILE=$(mktemp --tmpdir=${XDG_RUNTIME_DIR:-/tmp} editbox.txt.XXXXXXXX)
yad --center --window-icon=/usr/share/pixmaps/menulibre.png \
     --image=/usr/share/yelp/icons/hicolor/16x16/status/yelp-page-task.png \
     --fore="#3F0000" --back grey84 --title="sleep NNs  " --width 344 --height 180 \
     --undecorated \
     --text-info --show-uri --uri-color="#3F0000" --wrap \
     --editable < "$HOME/.fluxbox/scripts/quicklessquick" 2>/dev/null > $TMP_FILE
case $? in
    0) cat $TMP_FILE > "$HOME/.fluxbox/scripts/quicklessquick"
        rm -f $TMP_FILE
         quicklessquickperiod
# Save with OK.  The above line keeps the editor box open; close with Cancel button. comment it to have close with the OK button.
   ;;
    *) rm -f $TMP_FILE
   ;;
esac
/usr/local/bin/quicklessquickperiod allow executable.
Run /usr/local/bin/quicklessquickperiod
$HOME/.fluxbox/scripts/quicklessquick allow executable.
Try the keybinds. control+alt+x and control+alt+z.

Control Mod1 z brings a text box where change the numerals for seconds in sleep 2s. The big picture is that the keybind Control Mod1 x will launch what is typed in the box. For sample period timer confine edit on numerals. click OK to save.

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

Re: .shot timer delay period, quickshot.

#2 Post by Jerry3904 »

Thanks for posting this. I'll be able to look at it later today.
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
i_ri
Posts: 1136
Joined: Tue Jun 30, 2015 12:26 am

Re: .shot timer delay period, quickshot.

#3 Post by i_ri »

hello
tenr.de is not responding.
I do think the original tenner shot sh was created before scrot had -d.

Am Trialing the sample on another system, no icons, but it works.

About Delay microseconds fluxboxCommands:
Imagine it set for eleven seconds and you realize that you are not going to be ready within eleven seconds. Press the keys combination again to extend additional eleven seconds. keypress restarts the timer.

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

Re: .shot timer delay period, quickshot.

#4 Post by Jerry3904 »

Why are you looking at tener.de and not our mxfb-quickshot? BTW: the current scrot has it, and it works

Code: Select all

       -d, --delay [b]SEC
              Wait  SEC seconds before taking a shot.  When given the `b` prefix, e.g `-d b8`, the delay will be
              applied before selection.
 
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
i_ri
Posts: 1136
Joined: Tue Jun 30, 2015 12:26 am

Re: .shot timer delay period, quickshot.

#5 Post by i_ri »

Hello Jerry3904
Historically speaking... about shot sh.
I think sleep has been the method.

Are you pleased with accomplishment of the shot delay without touching mxfb-quickshot or its config. file?
Sample script does not touch mxfb-quickshot or its config. file where the scrot -d can become OPTION. If you do edit OPTION for full screen i like -p for full screen too. wink. For -d to change on the fly is sed config. rather than this sample script singled out the command manipulating around mxfb-quickshot while not manipulating scrot.

Fluxbox keys "Delay" at twelve seconds is probably fairly durable and will not need change often(?)
Delay without touching mxfb-quickshot or its config. file.

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

Re: .shot timer delay period, quickshot.

#6 Post by siamhie »

i_ri wrote: Thu Aug 08, 2024 8:50 am tenr.de is not responding.

The site has been down for a couple of weeks now. Not sure if it will be back. (it had a great section on learning to create custom styles)
It's a shame because it had a link to download all of the styles collected from all over the web. (I'm glad I downloaded that file awhile back)
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.

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

Re: .shot timer delay period, quickshot.

#7 Post by Jerry3904 »

i_ri wrote: Thu Aug 08, 2024 10:48 am Hello Jerry3904
Historically speaking... about shot sh.
I think sleep has been the method.

Are you pleased with accomplishment of the shot delay without touching mxfb-quickshot or its config. file?
Sample script does not touch mxfb-quickshot or its config. file where the scrot -d can become OPTION. If you do edit OPTION for full screen i like -p for full screen too. wink. For -d to change on the fly is sed config. rather than this sample script singled out the command manipulating around mxfb-quickshot while not manipulating scrot.

Fluxbox keys "Delay" at twelve seconds is probably fairly durable and will not need change often(?)
Delay without touching mxfb-quickshot or its config. file.
Haven't tried it yet. To be honest, my preference ATM is to modify mxfb-quickshot rather than introduce a separate script and mechanism. But we have ots of time...
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: 3780
Joined: Fri Aug 20, 2021 5:45 pm

Re: .shot timer delay period, quickshot.

#8 Post by siamhie »

Jerry3904 wrote: Thu Aug 08, 2024 12:49 pm my preference ATM is to modify mxfb-quickshot rather than introduce a separate script and mechanism. But we have ots of time...
+1
The current way is easy. I press the print screen button and have a plus sign mouse pointer show up.
All I have to do is either left click (on an empty desktop area) for full screen images, left click on title bars for window shots
or left click hold and draw a rectangle around the object I want to screen shot.
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.

User avatar
i_ri
Posts: 1136
Joined: Tue Jun 30, 2015 12:26 am

Re: .shot timer delay period, quickshot.

#9 Post by i_ri »

Thanks Jerry3904 and siamhie
hello gtkdialog
Assign value seconds for sleep. May i say retard?
Pause, wait, delay, timer, interim, postponement

Is paused mxfb-quickshot fullscreen Quickshot for later

Code: Select all

#!/bin/bash
export DIALOG=$(cat <<End_of_Text

<window title="DELAY ExecuteCommand" icon-name="player_pause" window-position="1" allow-grow="false" border-width="8">

<vbox>
<frame   SECONDS  interim   click interim shot   >
<spinbutton range-min="2" range-max="257" range-step="1" range-value="11" xalign="0.5" max-length="3" progress-fraction="0.00">
<variable>DELAYPERIOD</variable>
</spinbutton>
</frame>
<frame   Pause  Quickshot           >
        <button ok></button>
</frame>
</vbox>

</window>
End_of_Text
)

I=$IFS; IFS=""
for STATEMENTS in  $(gtkdialog --program DIALOG); do
  eval $STATEMENTS
done
IFS=$I

if [ "$EXIT" = "OK" ] ; then
sleep ${DELAYPERIOD}s && mxfb-quickshot r jpg
else
exit
fi

test notify-send with

Code: Select all

notify-send -i love-emote hello everyone
To Turn On Quickshot notifications for shot Taken
go to mxfb-quickshot
Have line 270 reflect the notification on line 233;
add the && /usr/bin/notify-send -i "$ICONPATH" -t 3000 " $SUCCESS"
to end line 270 take_shot
You do not have the required permissions to view the files attached to this post.

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

Re: .shot timer delay period, quickshot.

#10 Post by Jerry3904 »

Well that works, thanks! That's a good start on where I'd like to go.

In addition to a number of small edits, I will want to bind it to a couple of key patterns to fit in with existing ones. Maybe come up with a simple usage with a fixed delay for common situations that triggers the default interactive state, so Print then "d" would be all that was required. We'll see...
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

Post Reply

Return to “MX Fluxbox Official Release”