scripts/printscreen

17 lines
405 B
Plaintext
Raw Normal View History

2015-05-11 23:41:56 +02:00
#!/bin/sh
2020-12-01 16:27:21 +01:00
## Try to use flameshot to get a screenshot
### See https://github.com/flameshot-org/flameshot
## Or try to use scrot
2020-12-01 16:27:21 +01:00
if [ "$(command -v flameshot)" ]; then
flameshot gui --path /tmp --delay 50
2020-12-01 16:27:21 +01:00
else ## Use scrot
# -s: Interactively select a window or rectangle with the mouse.
# -e: Directly open the screenshot with Gimp then delete it
scrot -s -m -e 'gimp $f ; mv $f /tmp/'
fi