From bdc1e3887115135259ee7a2a8c89b3e5ef7c3267 Mon Sep 17 00:00:00 2001 From: Rostyslav Hnatyshyn Date: Fri, 20 Sep 2024 20:22:03 -0700 Subject: [PATCH] add screenshot scripts --- scripts/screenshot-active-to-clipboard.sh | 3 +++ scripts/screenshot-to-clipboard.sh | 2 ++ scripts/screenshot-to-file.sh | 2 ++ 3 files changed, 7 insertions(+) create mode 100755 scripts/screenshot-active-to-clipboard.sh create mode 100755 scripts/screenshot-to-clipboard.sh create mode 100755 scripts/screenshot-to-file.sh diff --git a/scripts/screenshot-active-to-clipboard.sh b/scripts/screenshot-active-to-clipboard.sh new file mode 100755 index 0000000..39d938f --- /dev/null +++ b/scripts/screenshot-active-to-clipboard.sh @@ -0,0 +1,3 @@ +#!/bin/sh +maim --select -u + diff --git a/scripts/screenshot-to-clipboard.sh b/scripts/screenshot-to-clipboard.sh new file mode 100755 index 0000000..76eea2c --- /dev/null +++ b/scripts/screenshot-to-clipboard.sh @@ -0,0 +1,2 @@ +#!/bin/sh +maim --select -u | xclip -selection clipboard -target 'image/png' diff --git a/scripts/screenshot-to-file.sh b/scripts/screenshot-to-file.sh new file mode 100755 index 0000000..00ef5f2 --- /dev/null +++ b/scripts/screenshot-to-file.sh @@ -0,0 +1,2 @@ +#!/bin/sh +maim --select -u ~/$(date +%s).png