From 173781f4c75f1a5e8c5679f350b4e246413418bf Mon Sep 17 00:00:00 2001 From: kageru Date: Tue, 19 Oct 2021 11:12:10 +0200 Subject: [PATCH] Make this work on Xorg --- ppsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ppsh b/ppsh index dac6b55..eb482b9 100755 --- a/ppsh +++ b/ppsh @@ -15,7 +15,7 @@ generate_name() { } capture() { - if [ -n WAYLAND_DISPLAY ]; then + if [ -n "$WAYLAND_DISPLAY" ]; then slurp | grim -g - "$1" else maim -suk "$1" @@ -23,7 +23,7 @@ capture() { } clipboard() { - if [ -n WAYLAND_DISPLAY ]; then + if [ -n "$WAYLAND_DISPLAY" ]; then wl-copy "$1" else echo "$1" | xsel -b