diff options
Diffstat (limited to '.local/bin/screenshot')
-rwxr-xr-x | .local/bin/screenshot | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/.local/bin/screenshot b/.local/bin/screenshot deleted file mode 100755 index 04b28cd..0000000 --- a/.local/bin/screenshot +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -main () { - if [ $# -eq 0 ]; then - print_screen ; exit 0 - fi - - case "$1" in - -s) - selection ;; - *) - echo "usage: screenshot [-s]" ;; - esac -} - -print_screen () { - scrot -q 100 -e 'xclip -selection c -t image/png < $f; mv $f ~/Pictures/screenshots/' -} - -selection () { - sleep 0.2 - scrot -l mode=edge -i -s -e 'xclip -sel clip -t image/png $f; mv $f ~/Pictures/screenshots/' -} - -main "$@" |