Browse Source

Merge pull request #355 from LamidoKing/rofi-beats

Fix local music playback to start from selected track in Rofi Beats script
pull/365/head
Ja.KooLit 2 years ago committed by GitHub
parent
commit
3e87281fb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      config/hypr/UserScripts/RofiBeats.sh

13
config/hypr/UserScripts/RofiBeats.sh

@ -56,16 +56,9 @@ play_local_music() {
notification "$choice"
# For some reason wont start playlist at 0
if [[ $i -eq 0 ]]; then
# Play the selected local music file using mpv
mpv --loop-playlist --vid=no "$mDIR/$choice"
else
file=$i
# Play the selected local music file using mpv
mpv --playlist-start="$file" --loop-playlist --vid=no "$mDIR/$choice"
fi
# Play the selected local music file using mpv
mpv --playlist-start="$i" --loop-playlist --vid=no "${local_music[@]}"
break
fi
done

Loading…
Cancel
Save