cleanup
This commit is contained in:
parent
7663b7fb2c
commit
e5b96481ea
1 changed files with 7 additions and 6 deletions
|
@ -95,23 +95,24 @@ askrecording() {
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
asktoend() {
|
|
||||||
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording?") &&
|
|
||||||
[ "$response" = "Yes" ] && killrecording
|
|
||||||
}
|
|
||||||
|
|
||||||
videoselected() {
|
videoselected() {
|
||||||
|
mkdir -p "$XDG_VIDEOS_DIR/Captures"
|
||||||
eval "$(slop -f "X=%x Y=%y W=%w H=%h")"
|
eval "$(slop -f "X=%x Y=%y W=%w H=%h")"
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
-f x11grab \
|
-f x11grab \
|
||||||
-video_size "$W"x"$H" \
|
-video_size "$W"x"$H" \
|
||||||
-i $DISPLAY+"$X,$Y" \
|
-i "$DISPLAY+$X,$Y" \
|
||||||
-c:v libx264 -qp 0 -r 30 \
|
-c:v libx264 -qp 0 -r 30 \
|
||||||
"$XDG_VIDEOS_DIR/Captures/box-$(date '+%y%m%d-%H%M-%S').mkv" &
|
"$XDG_VIDEOS_DIR/Captures/box-$(date '+%y%m%d-%H%M-%S').mkv" &
|
||||||
echo $! >/tmp/recordingpid
|
echo $! >/tmp/recordingpid
|
||||||
updateicon ""
|
updateicon ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
asktoend() {
|
||||||
|
response=$(printf "No\\nYes" | dmenu -i -p "Recording still active. End recording?") &&
|
||||||
|
[ "$response" = "Yes" ] && killrecording
|
||||||
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
screencast) screencast ;;
|
screencast) screencast ;;
|
||||||
audio) audio ;;
|
audio) audio ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue