From faad61c92b19a8fc8111116217924408c307677b Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Fri, 19 Aug 2022 12:00:28 +0200 Subject: [PATCH] screenshot tool date fix --- bin/mb-jgtools | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mb-jgtools b/bin/mb-jgtools index 9070a1f..811c4bc 100755 --- a/bin/mb-jgtools +++ b/bin/mb-jgtools @@ -826,7 +826,7 @@ item_height_factor=300 [ -d $(xdg-user-dir PICTURES)/screenshots ] || mkdir -p $(xdg-user-dir PICTURES)/screenshots -IMG="$(xdg-user-dir PICTURES)/screenshots/Mabox_%Y-%m-%d-%H-%M-%s.png" +IMG="$(xdg-user-dir PICTURES)/screenshots/Mabox_$(date +'%Y%m%d-%H-%M-%S').png" VIEW="'viewnior $IMG'" THUMB="$(DISPLAY=:0 scrot -t 340x213 -o $HOME/.config/mabox/jgscrot.png -e 'echo $m')" @@ -840,7 +840,7 @@ cat < ${MENU_ITEMS}  $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,"""maim -s -l -b 3 --color=0.3,0.4,0.6,0.4 ${IMG};viewnior ${IMG}""" #  Multimonitor, scrot -m $IMG -e $VIEW ^sep()  $OPEN_SCR_DIR,xdg-open $(xdg-user-dir PICTURES)/screenshots