diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2025-01-12 14:51:49 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-12 14:51:49 +0900 |
| commit | 1a51c1c781bd92be657a9bb74685a86d9c76c733 (patch) | |
| tree | 48d22a66e91b124f517ce52b5455a868d4cc982e /config/hypr/UserScripts/RofiBeats.sh | |
| parent | b0168284df23c1d5c4967685d814732f354ed8f6 (diff) | |
| parent | 4a8b493fdb60ee5b055bb8cf4e9b26826e8ef5db (diff) | |
Merge pull request #516 from JaKooLit/main
Main to development
Diffstat (limited to 'config/hypr/UserScripts/RofiBeats.sh')
| -rwxr-xr-x | config/hypr/UserScripts/RofiBeats.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/hypr/UserScripts/RofiBeats.sh b/config/hypr/UserScripts/RofiBeats.sh index 17ce645a..e615aadb 100755 --- a/config/hypr/UserScripts/RofiBeats.sh +++ b/config/hypr/UserScripts/RofiBeats.sh @@ -13,6 +13,7 @@ declare -A online_music=( ["Radio - Lofi Girl 🎧🎶"]="https://play.streamafrica.net/lofiradio" ["Radio - Chillhop 🎧🎶"]="http://stream.zeno.fm/fyn8eh3h5f8uv" ["FM - Easy Rock 96.3 📻🎶"]="https://radio-stations-philippines.com/easy-rock" + ["FM - Easy Rock - Baguio 91.9 📻🎶"]="https://radio-stations-philippines.com/easy-rock-baguio" ["FM - Love Radio 90.7 📻🎶"]="https://radio-stations-philippines.com/love" ["FM - WRock - CEBU 96.3 📻🎶"]="https://onlineradio.ph/126-96-3-wrock.html" ["FM - Fresh Philippines 📻🎶"]="https://onlineradio.ph/553-fresh-fm.html" @@ -93,6 +94,12 @@ play_online_music() { # Check if an online music process is running and send a notification, otherwise run the main function pkill mpv && notify-send -u low -i "$iDIR/music.png" "Music stopped" || { +# Check if rofi is already running +if pidof rofi > /dev/null; then + pkill rofi +fi + + # Prompt the user to choose between local and online music user_choice=$(printf "Play from Online Stations\nPlay from Music Folder\nShuffle Play from Music Folder" | rofi -dmenu -config ~/.config/rofi/config-rofi-Beats-menu.rasi -p "Select music source") |
