diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-12-18 22:32:56 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-12-18 22:32:56 +0800 |
| commit | b034860d40e068194085b13714ebdfdd678917a7 (patch) | |
| tree | 6e1a8f079bcb903767d232b85920bf0349c18dd9 | |
| parent | 4e3dcc02d5f76111dda489c88fc15b9bea659898 (diff) | |
feat(hyprshot): use wayfreeze
| -rwxr-xr-x | hyprshot | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -74,7 +74,10 @@ shot10 () { } shotarea () { - g=$(slurp -d) || exit 1 + g=$(wayfreeze --after-freeze-cmd "slurp -d; killall wayfreeze") + if [[ -z "$g" ]]; then + exit 0 + fi grim -g "$g" - | copy_shot notify_view } |
