From fbce22632da02f1a4ccbc08a042bcdd7ad47135d Mon Sep 17 00:00:00 2001 From: The_miro Date: Thu, 12 Feb 2026 16:54:26 +0100 Subject: [PATCH] now the notif stays on screen just to be sure --- desktopenvs/hyprland/scripts/screenrec.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desktopenvs/hyprland/scripts/screenrec.sh b/desktopenvs/hyprland/scripts/screenrec.sh index 90c99a3..b1f6502 100755 --- a/desktopenvs/hyprland/scripts/screenrec.sh +++ b/desktopenvs/hyprland/scripts/screenrec.sh @@ -6,11 +6,12 @@ statecon=$( pidof wf-recorder ) outfile="$HOME/Videos/$(date +'%Y%m%d%H%M%S').mp4" $outfile - +nid="" if [ "$statecon" == '' ]; then - notify-send "recording started" + $nid=$(notify-send -p -u critical -t 0 "recording started") wf-recorder -g "$(slurp)" -f $outfile else + dunstctl close $nid notify-send "recording ended - output to $outfile" killall -s SIGINT wf-recorder fi