diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-08 00:40:16 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-08 00:40:16 +1000 |
| commit | 94c93e2d69eb2941e371786a091894bfa2b48e6e (patch) | |
| tree | e77908569442fa77cc7570792626f07b3d0d0ca2 /record.fish | |
| parent | install: fix shell install (diff) | |
| download | caelestia-cli-94c93e2d69eb2941e371786a091894bfa2b48e6e.tar.gz caelestia-cli-94c93e2d69eb2941e371786a091894bfa2b48e6e.tar.bz2 caelestia-cli-94c93e2d69eb2941e371786a091894bfa2b48e6e.zip | |
record: add delete action
Diffstat (limited to 'record.fish')
| -rwxr-xr-x | record.fish | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/record.fish b/record.fish index 244cece..3f01368 100755 --- a/record.fish +++ b/record.fish @@ -64,7 +64,7 @@ if pgrep wl-screenrec > /dev/null # Notification with actions set -l action (notify-send 'Recording stopped' "Stopped recording $new_recording_path" -i 'video-x-generic' -a 'caelestia-record' \ - --action='watch=Watch' --action='open=Open' --action='save=Save As') + --action='watch=Watch' --action='open=Open' --action='save=Save As' --action='delete=Delete') switch $action case 'watch' @@ -75,6 +75,8 @@ if pgrep wl-screenrec > /dev/null case 'save' set -l save_file (app2unit -- zenity --file-selection --save --title='Save As') test -n "$save_file" && mv $new_recording_path $save_file || warn 'No file selected' + case 'delete' + rm $new_recording_path end else # Set region if flag given otherwise active monitor |