From 14e80e6bf2704b44a3b3b0727afb52e93a0bff80 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Wed, 3 Apr 2019 22:35:59 +0200 Subject: [PATCH] Update screenshot script Signed-off-by: Severin Kaderli --- system/.local/bin/screenshot | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/system/.local/bin/screenshot b/system/.local/bin/screenshot index 3af4f2a..4503b70 100755 --- a/system/.local/bin/screenshot +++ b/system/.local/bin/screenshot @@ -18,10 +18,12 @@ PROMPT="Screenshot" # Actions for the menu ACTIONS=( "1: Fullscreen" - "2: Selection" + "2: Fullscreen (Clipboard)" + "3: Selection" + "4: Selection (Clipboard)" ) -FILENAME="${HOME}/Pictures/Screenshots/%Y-%m-%d-%H%I%S.png" +FILENAME="${HOME}/Pictures/Screenshots/%Y-%m-%d-%H%M%S.png" SELECTION=$(printf '%s\n' "${ACTIONS[@]}" | rofi -dmenu -p "${PROMPT}" | cut -d ":" -f1) case "${SELECTION}" in @@ -29,6 +31,12 @@ case "${SELECTION}" in escrotum "${FILENAME}" ;; "2") + escrotum -C "${FILENAME}" + ;; + "3") escrotum -s "${FILENAME}" ;; + "4") + escrotum -C -s "${FILENAME}" + ;; esac