aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/UserScripts
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/UserScripts')
-rwxr-xr-xconfig/hypr/UserScripts/RofiBeats.sh13
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage