This commit is contained in:
coolnsx
2024-04-20 20:48:06 +05:30
parent 8fc908b84a
commit 1e0be92148
6 changed files with 31 additions and 31 deletions

6
screen
View File

@@ -32,9 +32,9 @@ compress() {
record() {
rm -f "$tmp_file" "$process_file"
#shellcheck disable=SC2034
mic="$(pactl list sources | grep -B1 'node.nick = "Digital Microphone"' | sed -nE 's|.*node.name = "([^"]*)"|\1.monitor|p')" #It is called in eval on line 9
mic="alsa_input.pci-0000_04_00.6.analog-stereo" #It is called in eval on line 9
#shellcheck disable=SC2034
speaker="alsa_output.pci-0000_00_1f.3.analog-stereo.monitor" #It is called in eval on line 9
speaker="alsa_output.pci-0000_04_00.6.analog-stereo.monitor" #It is called in eval on line 9
source=$(printf "screen only\nspeaker\nmic" | menu "Audio Source:" "3")
[ -z "$source" ] && info "" "2000" "No option Selected" && return 0
@@ -114,7 +114,7 @@ stop() {
}
tmp_file="/tmp/screenrecord.mp4"
tmp_file="${tmp_file:-/tmp/screenrecord.mp4}"
process_file="/tmp/processed.mp4"
[ "$#" -gt 0 ] && $1 "$2"