1
0
Fork 0
This commit is contained in:
Luca Bilke 2024-05-08 11:49:54 +02:00
parent 220e73d4a4
commit d1ee076835
No known key found for this signature in database
GPG Key ID: B753481DA0B6FA47
1 changed files with 7 additions and 6 deletions

View File

@ -95,23 +95,24 @@ askrecording() {
esac
}
asktoend() {
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording?") &&
[ "$response" = "Yes" ] && killrecording
}
videoselected() {
mkdir -p "$XDG_VIDEOS_DIR/Captures"
eval "$(slop -f "X=%x Y=%y W=%w H=%h")"
ffmpeg \
-f x11grab \
-video_size "$W"x"$H" \
-i $DISPLAY+"$X,$Y" \
-i "$DISPLAY+$X,$Y" \
-c:v libx264 -qp 0 -r 30 \
"$XDG_VIDEOS_DIR/Captures/box-$(date '+%y%m%d-%H%M-%S').mkv" &
echo $! >/tmp/recordingpid
updateicon "󰍹"
}
asktoend() {
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording?") &&
[ "$response" = "Yes" ] && killrecording
}
case "$1" in
screencast) screencast ;;
audio) audio ;;