From 5537696c6adc2da776b83b2dc08132c0e62202a2 Mon Sep 17 00:00:00 2001 From: TuDatTr Date: Tue, 2 Mar 2021 12:23:39 +0100 Subject: [PATCH] Changed scripts --- config/.scripts/screenshot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/.scripts/screenshot.sh b/config/.scripts/screenshot.sh index 64701de..0fdb4ce 100755 --- a/config/.scripts/screenshot.sh +++ b/config/.scripts/screenshot.sh @@ -8,6 +8,8 @@ type xdotool >/dev/null 2>&1 || { echo >&2 "I require xdotool but it's not insta d=$HOME/Pictures/Screenshots/$(date +%Y-%m); fd=$(date +%G-%m-%d_%H-%M-%S) +mkdir $d; + case $1 in "screen"*) filename=$fd-$(cat /proc/$(xdotool getwindowfocus getwindowpid)/comm).png;