diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2024-10-27 23:11:27 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2024-10-27 23:11:27 +0800 |
| commit | de643dda9debd8c69a00a82501d2a9f574414f59 (patch) | |
| tree | dc23165f0388f397edbefd4d683ec4281efa6a69 /rec.sh | |
| parent | 2a97af4f7c21a04bdea4cc95b4d361210c3f3557 (diff) | |
fix(rec.sh): fixed wrong $? measure fore kill gpuscreenrecorder
Diffstat (limited to 'rec.sh')
| -rwxr-xr-x | rec.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -22,7 +22,7 @@ function status() { function recorder() { killall -SIGINT gpu-screen-recorder - if ! [ $? -eq ]; then + if [ $? -eq 0 ]; then filename=$(cat $XDG_CACHE_HOME/rec_filename) (dragon --icon-only --thumb-size 512 --and-exit "$XDG_VIDEOS_DIR/$filename" & sleep 10 && kill $!) if [ "$(cat $XDG_CACHE_HOME/rec_prev_dnd)" == "false" ]; then |
