From 583cc6680d24c955662fe0b308380cbbbc7aa7e1 Mon Sep 17 00:00:00 2001 From: Luc Bijl Date: Sun, 17 Aug 2025 19:43:33 +0200 Subject: [PATCH] bin/screenshot: add --- bin/screenshot | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 bin/screenshot diff --git a/bin/screenshot b/bin/screenshot new file mode 100755 index 0000000..74ebcba --- /dev/null +++ b/bin/screenshot @@ -0,0 +1,17 @@ +#!/bin/sh + +# Get the type from arg +type=$1 + +# Perform action based on type +case "$type" in + "interactive") # Take interactive screenshot + grim -g "$(slurp -d)" - | wl-copy -t image/jpeg + ;; + "plain") # Take plain screenshot + grim - | wl-copy -t image/jpeg + ;; + *) # Handle invalid type + echo "Invalid type, use screenshot ." + ;; +esac