record script fix
This commit is contained in:
parent
a2f7435e31
commit
c003ba9c34
1 changed files with 7 additions and 2 deletions
|
@ -71,13 +71,18 @@ audiopulse() { \
|
||||||
audioalsa() { \
|
audioalsa() { \
|
||||||
ffmpeg -y \
|
ffmpeg -y \
|
||||||
-f alsa -ar 44100 -i hw:1 \
|
-f alsa -ar 44100 -i hw:1 \
|
||||||
"$HOME/audio-$(date '+%y%m%d-%H%M-%S').mkv" &
|
"$HOME/audio-$(date '+%y%m%d-%H%M-%S').flac" &
|
||||||
echo $! > ~/.recordingpid
|
echo $! > ~/.recordingpid
|
||||||
updateicon "🎙️"
|
updateicon "🎙️"
|
||||||
}
|
}
|
||||||
|
|
||||||
askrecording() { \
|
askrecording() { \
|
||||||
printf "screencast\\nvideo\\naudio" | dmenu -i -p "Select recording style:"
|
choice=$(printf "screencast\\nvideo\\naudio" | dmenu -i -p "Select recording style:")
|
||||||
|
case "$choice" in
|
||||||
|
screencast) screencastpulse;;
|
||||||
|
audio) audiopulse;;
|
||||||
|
video) video;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
asktoend() { \
|
asktoend() { \
|
||||||
|
|
Loading…
Reference in a new issue