record script: nicer app name

This commit is contained in:
end-4
2025-05-25 20:02:58 +02:00
parent aad4584aa7
commit 1bc23257c7
+2 -2
View File
@@ -13,10 +13,10 @@ getactivemonitor() {
mkdir -p "$(xdg-user-dir VIDEOS)" mkdir -p "$(xdg-user-dir VIDEOS)"
cd "$(xdg-user-dir VIDEOS)" || exit cd "$(xdg-user-dir VIDEOS)" || exit
if pgrep wf-recorder > /dev/null; then if pgrep wf-recorder > /dev/null; then
notify-send "Recording Stopped" "Stopped" -a 'record-script.sh' & notify-send "Recording Stopped" "Stopped" -a 'Recorder' &
pkill wf-recorder & pkill wf-recorder &
else else
notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'record-script.sh' notify-send "Starting recording" 'recording_'"$(getdate)"'.mp4' -a 'Recorder'
if [[ "$1" == "--sound" ]]; then if [[ "$1" == "--sound" ]]; then
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown
elif [[ "$1" == "--fullscreen-sound" ]]; then elif [[ "$1" == "--fullscreen-sound" ]]; then