diff options
author | Shubham Saini <shubham6405@gmail.com> | 2020-05-04 07:25:53 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2020-05-04 07:25:53 +0000 |
commit | 429c61238bf49d490b0f1aa17134beeca8364e82 (patch) | |
tree | 562b5643322cf60b0dd057d7b80b1ec8e9282f3a /bin | |
parent | 2f4ae46af302ca41fc2a5bbb453b2ecf78f2e903 (diff) |
#
Diffstat (limited to 'bin')
-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 | ||