dotfiles/pianobar/.config/pianobar/change_station.sh
2024-08-12 17:39:56 -07:00

5 lines
266 B
Bash
Executable file

#!/bin/bash
choice=$(cat "$HOME/.config/pianobar/info" | grep "station[0-9]" | cut -d "=" -f 2 | fuzzel --dmenu)
[ -z "$choice" ] || echo "s$(cat "$HOME/.config/pianobar/info" | grep "$choice" | cut -d "=" -f 1 | sed "s/station//")" > "$HOME/.config/pianobar/ctl"