diff --git a/.config/hypr/hyprland/record-script.sh b/.config/hypr/hyprland/record-script.sh index f9dd16dc7..ae817b90b 100755 --- a/.config/hypr/hyprland/record-script.sh +++ b/.config/hypr/hyprland/record-script.sh @@ -13,10 +13,10 @@ getactivemonitor() { mkdir -p "$(xdg-user-dir VIDEOS)" cd "$(xdg-user-dir VIDEOS)" || exit 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 & 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 wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$(slurp)" --audio="$(getaudiooutput)" & disown elif [[ "$1" == "--fullscreen-sound" ]]; then