From 8d605f247954427d97c38e29a5c42566b90e13b7 Mon Sep 17 00:00:00 2001 From: Mikko Lehto Date: Sat, 22 Sep 2018 20:29:01 +0300 Subject: [PATCH] bin/screenshot: export to subdirectory and optionally give name --- bin/screenshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/screenshot b/bin/screenshot index 6a0c515..1f38134 100755 --- a/bin/screenshot +++ b/bin/screenshot @@ -1,7 +1,7 @@ #!/bin/sh DATE="$(date +%Y-%m-%d_%H%M%S)" -FILENAME=~/${DATE}_screenshot.png +FILENAME=~/ss/${DATE}_screenshot_$1.png LINK=~/latest_screenshot.png xwd | xwdtopnm | pnmtopng > $FILENAME if [ $? -eq 0 ]