now sceenrecording also works - sadly not to clipboard, but timestamped
parent
8950e8f42a
commit
d2f43a3441
|
|
@ -2,16 +2,17 @@
|
||||||
|
|
||||||
mkdir -p ~/Videos
|
mkdir -p ~/Videos
|
||||||
statecon=$( pidof wf-recorder )
|
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"
|
notify-send "recording started"
|
||||||
wf-recorder -g "$(slurp)" -a -f ~/Videos/lastrec.mp4
|
wf-recorder -g "$(slurp)" -f $outfile
|
||||||
else
|
else
|
||||||
|
notify-send "recording ended - output to $outfile"
|
||||||
notify-send "recording ended"
|
|
||||||
killall -s SIGINT wf-recorder
|
killall -s SIGINT wf-recorder
|
||||||
wl-copy < ~/Videos/lastrec.mp4
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue