From 0b11e075866c5dabb664251a6bf459a83074077e Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Tue, 6 Jun 2023 22:16:52 +0200 Subject: [PATCH] delay for selected area screenshots --- bin/mb-jgtools | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/bin/mb-jgtools b/bin/mb-jgtools index 44de39f..ede3b70 100755 --- a/bin/mb-jgtools +++ b/bin/mb-jgtools @@ -870,6 +870,7 @@ case $LANG in NOW="Teraz" SEC5="Za 5 sekund" SEC10="Za 10 sekund" + SEC15="Za 15 sekund" BACK="wróć" OPEN_SCR_DIR="Otwórz katalog ze zrzutami ekranu" CANCEL="Anuluj" @@ -897,6 +898,7 @@ case $LANG in NOW="Ahora" SEC5="En 5 segundos" SEC10="En 10 segundos" + SEC15="En 15 segundos" BACK="atrás" OPEN_SCR_DIR="Abrir carpeta de capturas" CANCEL="Cancelar" @@ -924,6 +926,7 @@ case $LANG in NOW="Now" SEC5="In 5 seconds" SEC10="In 10 seconds" + SEC15="In 15 seconds" BACK="back" OPEN_SCR_DIR="Open screenshot directory" CANCEL="Cancel" @@ -1004,8 +1007,8 @@ cat < ${MENU_ITEMS}  $FULLSCR,^root(full)  $ACTIVE_WIN,^root(window)  $ACTIVE_WIN_NO_DECOR,^root(borderless) -#  $SELECTED,scrot -fs $IMG -e $VIEW -  $SELECTED,"""maim -s -l -b 3 --color=0.3,0.4,0.6,0.4 ${IMG};viewnior ${IMG}""" +  $SELECTED,^root(selected) + #  Multimonitor, scrot -m $IMG -e $VIEW ^sep()  $OPEN_SCR_DIR,xdg-open $(xdg-user-dir PICTURES)/screenshots @@ -1024,6 +1027,7 @@ cat < ${MENU_ITEMS}  $NOW,scrot $IMG -e $VIEW  $SEC5,scrot -d 5 $IMG -e $VIEW  $SEC10,scrot -d 10 $IMG -e $VIEW +  $SEC15,scrot -d 15 $IMG -e $VIEW ^sep() ⮜ $BACK,^back() ^tag(window) @@ -1031,6 +1035,7 @@ cat < ${MENU_ITEMS}  $NOW,scrot -d 1 -u -b $IMG -e $VIEW  $SEC5,scrot -d 5 -u -b $IMG -e $VIEW  $SEC10,scrot -d 10 -u -b $IMG -e $VIEW +  $SEC15,scrot -d 15 -u -b $IMG -e $VIEW ^sep() ⮜ $BACK,^back() ^tag(borderless) @@ -1038,6 +1043,15 @@ cat < ${MENU_ITEMS}  $NOW,scrot -d 1 -u $IMG -e $VIEW  $SEC5,scrot -d 5 -u $IMG -e $VIEW  $SEC10,scrot -d 10 -u $IMG -e $VIEW +  $SEC15,scrot -d 15 -u $IMG -e $VIEW +^sep() + ⮜ $BACK,^back() +^tag(selected) +^sep($SELECTED) +  $NOW,"""maim -s -l -b 3 --color=0.3,0.4,0.6,0.4 ${IMG};viewnior ${IMG}""" +  $SEC5,"""maim -s -l --delay=5 -b 3 --color=0.3,0.4,0.6,0.4 ${IMG};viewnior ${IMG}""" +  $SEC10,"""maim -s -l --delay=10 -b 3 --color=0.3,0.4,0.6,0.4 ${IMG};viewnior ${IMG}""" +  $SEC15,"""maim -s -l --delay=15 -b 3 --color=0.3,0.4,0.6,0.4 ${IMG};viewnior ${IMG}""" ^sep() ⮜ $BACK,^back() ^tag(settings)