diff options
| -rwxr-xr-x | bin/.local/bin/screenshot | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/.local/bin/screenshot b/bin/.local/bin/screenshot new file mode 100755 index 0000000..107faf7 --- /dev/null +++ b/bin/.local/bin/screenshot | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | screenshot() { | ||
| 3 | case $1 in | ||
| 4 | full) | ||
| 5 | scrot -m | ||
| 6 | ;; | ||
| 7 | window) | ||
| 8 | sleep 1 | ||
| 9 | scrot -s | ||
| 10 | ;; | ||
| 11 | *) | ||
| 12 | ;; | ||
| 13 | esac; | ||
| 14 | } | ||
| 15 | |||
| 16 | screenshot $1 | ||
