#. /a/c/fsf-script-lib
-# todo: what the hell is going on here: I think I accidentally pressed r
-# for rock, then wanted to set it back, so I pressed the button for
-# dance.
-#
-#beetmq id:19324 rock=t
-# rock: t
-#beetmq id:19324 genre=dance
-#No changes to make.
-
# Must be called from beetag for variables to be setup
beetag-help() {
y other genres z fg player ' = toggle play 1-5 rate ] repeat1
-; previous _ delete j/k skip mpv_keys vol,pause,seek
+; previous ) delete j/k skip mpv_keys vol,pause,seek
EOF
hr
scrolled=10
# Must be called from beetag for variables to be setup
beetag-nostatus() {
+ if [[ $verbose == true ]]; then
+ return 0
+ fi
if (( $# )); then
scrolled=$(( scrolled + $1 ))
fi
if $do_rare_genres || [[ ! $do_rare_genres ]]; then
do_rare_genres=false
button_map=(${common_genres[@]} ${pl_tags[@]})
- last_genre_i=$(( ${#rare_genres[@]} - 1 ))
+ last_genre_i=$(( ${#common_genres[@]} - 1 ))
else
do_rare_genres=true
button_map=(${rare_genres[@]} ${pl_tags[@]})
by immediately jumping forward into the song. this is set in the beets
config yaml.
-(available buttons: ` ) ] [ and non-printing chars, see
+(available buttons: ` _ ] [ and non-printing chars, see
https://stackoverflow.com/questions/10679188/casing-arrow-keys-in-bash
# * According to docs, to get started: cp /usr/share/pipewire/pipewire.conf ~/.config/pipewire/pipewire.conf
# cp /usr/share/pipewire/pipewire-pulse.conf ~/.config/pipewire/pipewire-pulse.conf
#
+ # # audio troubleshooting measures: --audio-buffer=2 --pipewire-buffer=2000 --pulse-buffer=2000 --cache=yes --cache --cache-secs=30
mpv --profile=a --volume=$volume --idle &
sleep .1 # or else: socat[1103381] E connect(5, AF=1 "/tmp/mpvsock", 14): Connection refused
beetag-nostatus 1
continue
;;
- _)
+ ')')
m beet rm --delete --force "id:$id"
beetag-nostatus 4 # guessing. dont want to test atm
j=$(( ( j + 1 ) % id_count ))
beetag-nostatus $(( id_count - skip_start - 1 ))
line_int=0
- overflow_lines=$LINES
- for (( i=skip_start; i < overflow_lines - 1 && i < id_count; i++ )); do
+
+ if [[ ! $LINES =~ $uint_regex ]]; then err "bad LINES:'$LINES'"; return 1; fi
+ skip_end=$(( skip_start + LINES - 1 ))
+ (( skip_end <= id_count )) || skip_end=$id_count
+
+ #e "debug: skip_start: $skip_start overflow_lines: $overflow_lines id_count: $id_count"
+
+ for (( i=skip_start; i <= skip_end; i++ )); do
+ #e "i=$i"
ls_line="${ls_lines[i]}"
- overflow=$(( ${#ls_line} / ( COLUMNS - 1 ) ))
- overflow_lines=$(( overflow_lines - overflow ))
+ line_wraps=$(( ${#ls_line} / ( COLUMNS - 1 ) ))
+ skip_end=$(( skip_end - line_wraps ))
+
if (( i == j )); then
echo " * $ls_line"
continue