scripts

Scripts
git clone git://git.wimdupont.com/scripts.git
Log | Files | Refs | LICENSE

commit 90116d9feb725dfdee1847fbb758c1c97aa6a336
parent 786d50cf3d044207b7bc47c8c3387d3c8d0fcdca
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sun, 26 Feb 2023 19:18:33 +0100

minor radio improvements

Diffstat:
Mbin/radio | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/radio b/bin/radio @@ -10,7 +10,7 @@ lines=$DMENU_LINES dmenu=dmenu file=~/.config/scripts/radiostations -readarray -t stations < "$file" +readarray -t stations < "${file}" stationName=$(printf '%s\n' "${stations[@]}" | cut -f1 -d ';' | "$dmenu" -fn "$font" -i -l "$lines" "$@") @@ -19,9 +19,9 @@ for i in "${stations[@]}" do name=$(echo "$i" | cut -f1 -d ';') - if [[ $name == $stationName ]]; then + if [[ "${name}" == "${stationName}" ]]; then station=$(echo "$i" | cut -f2 -d ';') - exec urxvt -e mpv $station + exec urxvt -e mpv --no-video "${station}" break fi echo "No valid station given"