now the notif stays on screen just to be sure
parent
d2f43a3441
commit
fbce22632d
|
|
@ -6,11 +6,12 @@ statecon=$( pidof wf-recorder )
|
||||||
|
|
||||||
outfile="$HOME/Videos/$(date +'%Y%m%d%H%M%S').mp4"
|
outfile="$HOME/Videos/$(date +'%Y%m%d%H%M%S').mp4"
|
||||||
$outfile
|
$outfile
|
||||||
|
nid=""
|
||||||
if [ "$statecon" == '' ]; then
|
if [ "$statecon" == '' ]; then
|
||||||
notify-send "recording started"
|
$nid=$(notify-send -p -u critical -t 0 "recording started")
|
||||||
wf-recorder -g "$(slurp)" -f $outfile
|
wf-recorder -g "$(slurp)" -f $outfile
|
||||||
else
|
else
|
||||||
|
dunstctl close $nid
|
||||||
notify-send "recording ended - output to $outfile"
|
notify-send "recording ended - output to $outfile"
|
||||||
killall -s SIGINT wf-recorder
|
killall -s SIGINT wf-recorder
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue