now the notif stays on screen just to be sure

main
The_miro 2026-02-12 16:54:26 +01:00
parent d2f43a3441
commit fbce22632d
1 changed files with 3 additions and 2 deletions

View File

@ -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