Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2020-11-23 00:43:02 +01:00
parent fc7dc3f34a
commit 92c9bc16f0
8 changed files with 200 additions and 11 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
AUDIO=$(pactl list sources | awk '/Name: alsa_out/{print $2}' | tail -n1)
AUDIO=$(pactl list sources | awk '/Name: alsa_out/{print $2}' | head -n1)
pkill -9 xautolock; xset s 10800
ffmpeg \
-f pulse \
@ -11,3 +13,6 @@ ffmpeg \
-i :0 \
-c:v h264 -crf 0 -preset ultrafast -c:a aac \
"$HOME/screencast-$(date '+%y%m%d-%H%M-%S').mp4"
xset s 600&
xautolock -time 15 -locker slock&