add scrot script & add scrot to appmenu
Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
f10d6cddaa
commit
823ad95477
2 changed files with 12 additions and 0 deletions
9
scripts/appscripts/sxmo_screenshot.sh
Executable file
9
scripts/appscripts/sxmo_screenshot.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env sh
|
||||
# scrot refuses to work with double quotes
|
||||
# shellcheck disable=SC2016
|
||||
|
||||
if [ "$1" = "selection" ]; then
|
||||
notify-send "select an area" && scrot -e 'echo $f | xsel -i -b' -d 1 -s -q 1 && notify-send "screenshot saved, filename copied to clipboard"
|
||||
else
|
||||
scrot -e 'echo $f | xsel -i -b' -d 1 -q 1 && notify-send "screenshot saved, filename copied to clipboard"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue