about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-07-31 22:48:25 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-07-31 22:48:25 +0200
commitd4cf98254db237b778e940bd85a82e5459692f23 (patch)
tree01589ce76ab3619df33cd2cd03b0b8616c6d1b4c
parentImproved videos script (diff)
downloaddmenu-d4cf98254db237b778e940bd85a82e5459692f23.tar.gz
dmenu-d4cf98254db237b778e940bd85a82e5459692f23.tar.bz2
dmenu-d4cf98254db237b778e940bd85a82e5459692f23.zip
Fixed screenshot script
-rwxr-xr-xscripts/screenshot2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/screenshot b/scripts/screenshot
index 97ea82e..0881970 100755
--- a/scripts/screenshot
+++ b/scripts/screenshot
@@ -54,7 +54,7 @@ case ${cmd%% *} in
 
     #for local screenshots
     1.Normal_fullscreen)            scrot -d 1 "$FILEMASK" && notify-send -u low -t ${TIME} "Screenshot saved"  ;;
-    2.Delayed_fullscreen)           notify-send -u low -t $rounded_num "Screenshot in $COUNTER seconds" && sleep $COUNTER && scrot -d 1 "$FILEMASK" && notify-send -u low -t ${TIME} "Screenshot saved"  ;;
+    2.Delayed_fullscreen)           notify-send -u low -t $rounded_num "Screenshot in $(($COUNTER / 1000)) seconds" && sleep $(($COUNTER / 1000)) && scrot -d 1 "$FILEMASK" && notify-send -u low -t ${TIME} "Screenshot saved"  ;;
     3.Section)                      scrot -s "$FILEMASK" && notify-send -u low -t ${TIME} "Screenshot saved"    ;;
 
     #for screencasts