aboutsummaryrefslogtreecommitdiff
path: root/scripts/.scripts/screenshot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/.scripts/screenshot.sh')
-rwxr-xr-xscripts/.scripts/screenshot.sh15
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