now sceenrecording also works - sadly not to clipboard, but timestamped

main
The_miro 2026-02-12 16:40:50 +01:00
parent 8950e8f42a
commit d2f43a3441
1 changed files with 7 additions and 6 deletions

View File

@ -2,16 +2,17 @@
mkdir -p ~/Videos
statecon=$( pidof wf-recorder )
if [ "$statecon" == '' ]; then
rm ~/Videos/lastrec.mp4
outfile="$HOME/Videos/$(date +'%Y%m%d%H%M%S').mp4"
$outfile
if [ "$statecon" == '' ]; then
notify-send "recording started"
wf-recorder -g "$(slurp)" -a -f ~/Videos/lastrec.mp4
wf-recorder -g "$(slurp)" -f $outfile
else
notify-send "recording ended"
notify-send "recording ended - output to $outfile"
killall -s SIGINT wf-recorder
wl-copy < ~/Videos/lastrec.mp4
fi