From 100315b057c943cb754eb8feac47172bbb47f191 Mon Sep 17 00:00:00 2001 From: shockrah Date: Thu, 26 Sep 2019 15:12:10 -0700 Subject: [PATCH] optional parameter works in dmenu+shell --- snip | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/snip b/snip index 4682780..a7a7d06 100755 --- a/snip +++ b/snip @@ -1,2 +1,6 @@ #!/bin/sh -scrot -sz $HOME/tmp.png +if [ -z "$1" ]; then + scrot -sz $HOME/tmp.png +else + scrot -sz $HOME/$1 +fi