From 7cb6dc5ff182a31cd0b29a806bc2dff889bb8228 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Mon, 15 Jan 2024 22:32:49 +0300 Subject: [PATCH] better naming & small fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferit Yiğit BALABAN --- ss_full.sh | 8 ++++++++ ss_rect.sh | 8 ++++++++ wl_ss.sh | 8 -------- wl_sss.sh | 8 -------- 4 files changed, 16 insertions(+), 16 deletions(-) create mode 100755 ss_full.sh create mode 100755 ss_rect.sh delete mode 100644 wl_ss.sh delete mode 100755 wl_sss.sh diff --git a/ss_full.sh b/ss_full.sh new file mode 100755 index 0000000..6a76737 --- /dev/null +++ b/ss_full.sh @@ -0,0 +1,8 @@ +#!/usr/bin/bash +# +# 1. take the screenshot of all displays with cursor visible (-c) +# and print to stdout (-) +# 2. the data printed to stdout is piped to wl-copy and it's copied +# 3. the data is pasted to a file in folder $SS +SS="/media/fyb/share/shoka/swap/screenshots" +grim -c - | wl-copy --type image/png && wl-paste > "$SS"/$( date +'%Y-%m-%d-%H%M%S.png' ) diff --git a/ss_rect.sh b/ss_rect.sh new file mode 100755 index 0000000..5e76be4 --- /dev/null +++ b/ss_rect.sh @@ -0,0 +1,8 @@ +#!/usr/bin/bash +# +# Ferit Yiğit BALABAN, +# +# Select an area with slurp, ss with grim +# and copy to clipboard. +SS="/media/fyb/share/shoka/swap/screenshots" +grim -c -g "$( slurp )" - | wl-copy --type image/png && wl-paste > "$SS"/$( date +'%Y-%m-%d-%H%M%S.png' ) diff --git a/wl_ss.sh b/wl_ss.sh deleted file mode 100644 index fc2eb8c..0000000 --- a/wl_ss.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -# -# Ferit Yiğit BALABAN, -# -# Select an area with slurp, ss with grim -# and copy to clipboard. -export GRIM_DEFAULT_DIR="$HOME/shoka/swap/screenshots" -grim -g "$( slurp )" - | wl-copy --type image/png diff --git a/wl_sss.sh b/wl_sss.sh deleted file mode 100755 index a6e44b4..0000000 --- a/wl_sss.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash -# -# Ferit Yiğit BALABAN, -# -# Select an area with slurp, ss with grim -# and copy to clipboard. -SS="$HOME/shoka/swap/screenshots" -grim -g "$( slurp )" - | wl-copy --type image/png && wl-paste > "$SS"/$( date +'%Y-%m-%d-%H%M%S.png' )