From 3e02f1120bdcd68998391cc2e4827de971b96811 Mon Sep 17 00:00:00 2001 From: Omar Magdy Date: Sat, 7 May 2022 03:31:44 +0200 Subject: Edited Screenshot.sh made it that it would work with hacksaw and shotgun --- scripts/.scripts/screenshot.sh | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/scripts/.scripts/screenshot.sh b/scripts/.scripts/screenshot.sh index e0bd39f..336816f 100755 --- a/scripts/.scripts/screenshot.sh +++ b/scripts/.scripts/screenshot.sh @@ -1,13 +1,4 @@ -#!/bin/bash - -CHOICE=$(echo -e "Area\nWindow" | dmenu -i -l 2) - -if [ "$CHOICE"="Area" ]; then - gnome-screenshot -a -c -else - gnome-screenshot -w -c -fi - - - +#!/bin/sh -e +selection=$(hacksaw -f "-i %i -g %g") +shotgun $selection - | xclip -t 'image/png' -selection clipboard -- cgit v1.2.3