delay for selected area screenshots

This commit is contained in:
Daniel Napora 2023-06-06 22:16:52 +02:00
parent 0bce170171
commit 0b11e07586

View File

@ -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 <<EOF > ${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 <<EOF > ${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 <<EOF > ${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 <<EOF > ${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)