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