diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2024-06-26 21:19:42 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-26 21:19:42 +0900 |
| commit | 3e87281fb2c0192c917cdad3cc23b6675e35892f (patch) | |
| tree | 3bd0bfbc5ccc82c6ca50df9ab09862a3c83e2963 /config/hypr/UserScripts/RofiBeats.sh | |
| parent | 7e692f93f2d2a1e1de57bfca4571ec5a26ba4355 (diff) | |
| parent | 34994146fbca3b3ef43edfcc95a10d6fd8b06656 (diff) | |
Merge pull request #355 from LamidoKing/rofi-beats
Fix local music playback to start from selected track in Rofi Beats script
Diffstat (limited to 'config/hypr/UserScripts/RofiBeats.sh')
| -rwxr-xr-x | config/hypr/UserScripts/RofiBeats.sh | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 7a7ac3f5..b9e9ba01 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/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 |
