From 29a3bfae91ff4843a9ea2cab5b8cd18393fbdbf4 Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Mon, 2 Dec 2019 18:03:13 +0300 Subject: Refactor scripts --- scripts/xshot-select-upload.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/xshot-select-upload.sh') diff --git a/scripts/xshot-select-upload.sh b/scripts/xshot-select-upload.sh index 777eb87..040251e 100755 --- a/scripts/xshot-select-upload.sh +++ b/scripts/xshot-select-upload.sh @@ -1,7 +1,7 @@ #!/bin/sh -PIC="${HOME}/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" +PIC="$HOME/pictures/screenshots/$(date +%Y-%m-%d_%H-%M-%S).png" -maim --format=png --hidecursor --quality 8 --select "${PIC}" && \ - curl --form "file=@${PIC}" "https://0x0.st" | \ +maim --format=png --hidecursor --quality 8 --select "$PIC" && \ + curl --form "file=@$PIC" "https://0x0.st" | \ xclip -quiet -- cgit 1.4.1