diff options
| author | JackJ30 <jackqjamison@gmail.com> | 2025-05-27 17:29:30 -0400 |
|---|---|---|
| committer | JackJ30 <jackqjamison@gmail.com> | 2025-05-27 17:29:30 -0400 |
| commit | 41b74f66946213b6efc4134a514fd5ab76b03353 (patch) | |
| tree | fae893a107a19f093fff7aaae8f9ddc5535e17ea /scripts | |
| parent | f974ca81bab834105fc490792288aded773f3e6c (diff) | |
added evil mode
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/screenshot | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/scripts/screenshot b/scripts/screenshot new file mode 100755 index 0000000..b599be2 --- /dev/null +++ b/scripts/screenshot @@ -0,0 +1,20 @@ +#!/bin/bash +echo $1 +echo $2 + +if [[ $1 == "-full" ]]; +then + if [[ $2 == "-save" ]]; + then + grim -o eDP-1 ~/Pictures/Screenshots/$(date +'%s_grim.png') + else + grim -o eDP-1 - | wl-copy + fi +else + if [[ $1 == "-save" ]]; + then + grim -g "$(slurp)" ~/Pictures/Screenshots/$(date +'%s_grim.png') + else + grim -g "$(slurp)" - | wl-copy + fi +fi |
