mirror of
https://github.com/CoolnsX/repos_scripts.git
synced 2025-12-20 07:15:20 +05:30
Haiyaa
This commit is contained in:
6
screen
6
screen
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user