diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-07 03:31:44 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-07 03:31:44 +0200 |
| commit | 3e02f1120bdcd68998391cc2e4827de971b96811 (patch) | |
| tree | 583e8210b6fd8067c2704bebb9f15ec87f4d1757 /scripts/.scripts/screenshot.sh | |
| parent | 9c9625fec8f35932f37973f31677a21f3184511e (diff) | |
| download | dotfiles-3e02f1120bdcd68998391cc2e4827de971b96811.tar.xz dotfiles-3e02f1120bdcd68998391cc2e4827de971b96811.zip | |
Edited Screenshot.sh made it that it would work with hacksaw and shotgun
Diffstat (limited to 'scripts/.scripts/screenshot.sh')
| -rwxr-xr-x | scripts/.scripts/screenshot.sh | 15 |
1 files 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 |
