Add script to save recording, only show saved notification if gpu screen recorder was running when saving

This commit is contained in:
dec05eba
2024-05-10 01:32:20 +02:00
parent f1eb893493
commit d690bbca35
3 changed files with 5 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/sh -e
killall -INT gpu-screen-recorder && notify-send -u low 'GPU Screen Recorder' 'Stopped recording' && exit 0;
killall -SIGINT gpu-screen-recorder && sleep 0.5 && notify-send -t 1500 -u low 'GPU Screen Recorder' 'Stopped recording' && exit 0;
window=$(xdotool selectwindow)
active_sink="$(pactl get-default-sink).monitor"
mkdir -p "$HOME/Videos"