This commit is contained in:
2022-04-29 03:05:10 +03:00
commit 4cd2da271a
3 changed files with 83 additions and 0 deletions

12
tv.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
channel="$(grep tvg-id ~/Gits/ustvgo_to_m3u/ustvgo.m3u | awk '{print $2}' | sed 's/[^"]*"\([^"]*\)".*/\1/' | rofi -dmenu -i -l 20 -p 'Channels')"
if [[ -n $channel ]]
then
notify-send -t 2000 "Playing "$channel
mpv "$(grep "$channel" ~/Gits/ustvgo_to_m3u/ustvgo.m3u | tail -n 1)"
else
notify-send "Nothing was chosen"
fi