From f0c79300d963e608ccf6b83c4c213708423e01aa Mon Sep 17 00:00:00 2001 From: adam <56338480+adastx@users.noreply.github.com> Date: Mon, 10 Oct 2022 08:23:40 +0200 Subject: scripts: minor bugfixes --- .local/bin/screenshot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local/bin/screenshot') diff --git a/.local/bin/screenshot b/.local/bin/screenshot index 3eed12b..eca47ea 100755 --- a/.local/bin/screenshot +++ b/.local/bin/screenshot @@ -2,12 +2,12 @@ main () { if [ ! -n "$1" ]; then - print_screen + print_screen ; exit 0 fi case "$1" in -s) - screenshot-select ;; + selection ;; *) echo "usage: screenshot [-s]" ;; esac @@ -17,7 +17,7 @@ print_screen () { scrot -q 100 -e 'xclip -selection c -t image/png < $f; mv $f ~/Pictures/screenshots/' } -screenshot-select () { +selection () { sleep 0.2 scrot -l mode=edge -i -s -e 'xclip -sel clip -t image/png $f; mv $f ~/Pictures/screenshots/' } -- cgit v1.2.3-70-g09d2