-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrofi-beats
53 lines (48 loc) · 909 Bytes
/
rofi-beats
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/sh
notification(){
terminal-notifier -message 'Now Playing: Lofi Radio ☕️🎶'
}
menu(){
printf "1. Lofi Girl\n"
printf "2. Chillhop\n"
printf "3. Box Lofi\n"
printf "4. The Bootleg Boy\n"
printf "5. Radio Spinner\n"
printf "6. SmoothChill"
}
main() {
choice=$(menu | choose -b ff79c6 -w 48 -n 7 | cut -d. -f1)
case $choice in
1)
notification ;
mpv "https://play.streamafrica.net/lofiradio"
break
;;
2)
notification ;
mpv "http://stream.zeno.fm/fyn8eh3h5f8uv"
break
;;
3)
notification ;
mpv "http://stream.zeno.fm/f3wvbbqmdg8uv"
break
;;
4)
notification ;
mpv "http://stream.zeno.fm/0r0xa792kwzuv"
break
;;
5)
notification ;
mpv "https://live.radiospinner.com/lofi-hip-hop-64"
break
;;
6)
notification ;
mpv "https://media-ssl.musicradio.com/SmoothChill"
break
;;
esac
}
pkill -f http || main