agsdotfilesdotshyprlandhyprland-configricerofirofi-configshell-scriptsswwwwallustwaybarwaybar-modulewaybar-themes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
90 lines
2.0 KiB
90 lines
2.0 KiB
#!/bin/bash |
|
|
|
## Files |
|
CONFIG="$HOME/.config/wofi/WofiBig/config" |
|
STYLE="$HOME/.config/wofi/style.css" |
|
COLORS="$HOME/.config/wofi/colors" |
|
iDIR="$HOME/.config/dunst/icons" |
|
|
|
|
|
# wofi window config (in %) |
|
WIDTH=12 |
|
HEIGHT=30 |
|
|
|
## Wofi Command |
|
wofi_command="wofi --show dmenu \ |
|
--prompt choose... |
|
--conf $CONFIG --style $STYLE --color $COLORS \ |
|
--width=$WIDTH% --height=$HEIGHT% \ |
|
--cache-file=/dev/null \ |
|
--hide-scroll --no-actions \ |
|
--matching=fuzzy" |
|
|
|
|
|
notification(){ |
|
notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/music.png" "Now Playing: Online Music" |
|
} |
|
|
|
menu(){ |
|
printf "1. Lofi Girl\n" |
|
printf "2. 96.3 Easy Rock - FM Radio\n" |
|
printf "3. Box Lofi\n" |
|
printf "4. Top Music 2023\n" |
|
printf "5. Youtube Global Top 100\n" |
|
printf "6. SmoothChill\n" |
|
printf "7. Relaxing Music\n" |
|
printf "8. Youtube Remix\n" |
|
printf "9. K-Drama-OST2" |
|
} |
|
main() { |
|
choice=$(menu | ${wofi_command} | cut -d. -f1) |
|
case $choice in |
|
1) |
|
notification |
|
mpv "https://play.streamafrica.net/lofiradio" |
|
return |
|
;; |
|
2) |
|
notification |
|
mpv "https://radio-stations-philippines.com/easy-rock" |
|
return |
|
;; |
|
3) |
|
notification |
|
mpv "http://stream.zeno.fm/f3wvbbqmdg8uv" |
|
return |
|
;; |
|
4) |
|
notification ; |
|
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PL6k9a6aYB2zk0qSbXR-ZEiwqgdHymsRtQ" |
|
return |
|
;; |
|
5) |
|
notification ; |
|
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PL4fGSI1pDJn5kI81J1fYWK5eZRl1zJ5kM" |
|
return |
|
;; |
|
6) |
|
notification ; |
|
mpv "https://media-ssl.musicradio.com/SmoothChill" |
|
return |
|
;; |
|
7) |
|
notification ; |
|
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLMIbmfP_9vb8BCxRoraJpoo4q1yMFg4CE" |
|
return |
|
;; |
|
8) |
|
notification ; |
|
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLeqTkIUlrZXlSNn3tcXAa-zbo95j0iN-0" |
|
return |
|
;; |
|
9) |
|
notification ; |
|
mpv --shuffle --vid=no "https://youtube.com/playlist?list=PLUge_o9AIFp4HuA-A3e3ZqENh63LuRRlQ" |
|
return |
|
;; |
|
esac |
|
} |
|
|
|
pkill -f http && notify-send -h string:x-canonical-private-synchronous:sys-notify -u low -i "$iDIR/music.png" "Online Music stopped" || main
|
|
|