feat: better music tracking and playlist control

This commit is contained in:
coolnsx
2023-09-08 00:12:42 +05:30
parent b20ca5f107
commit a1a04196c6
4 changed files with 20 additions and 13 deletions

8
screen
View File

@@ -20,12 +20,12 @@ record() {
source=$(printf "screen only\nspeaker\nmic" | menu "Audio Source:" "3")
monitor=$(hyprctl monitors | sed -nE 's|Monitor ([^ ]*).*|\1|p')
[ "$(printf '%s\n' "$monitor" | wc -l)" -gt 1 ] && monitor=$(printf '%s' "$monitor" | menu "Choose Monitor:" "3")
#shellcheck disable=SC2089
[ -z "$source" ] && info "" "2000" "No option Selected" && return 0
info "simplescreenrecorder" "700" "Recording Started" "Capturing $monitor($source)"
sleep 0.3
[ "$source" != "screen only" ] && pactl set-default-source "$(eval "printf \$$source")" && arg=-a
#shellcheck disable=SC2086
setsid -f wf-recorder -t -m "mp4" -f "$tmp_file" --output "$monitor" $arg >/dev/null 2>&1
#shellcheck disable=SC2086,SC2090
info "simplescreenrecorder" "1000" "Select Region" "Tap/Click to select full" && setsid -f wf-recorder -x yuv420p -f /tmp/screenrecord.mp4 --output eDP-1 $arg -g "$(slurp)" >/dev/null 2>&1
info "simplescreenrecorder" "700" "Recording Started" "Capturing $monitor($source)"
}
compress() {