diff --git a/scripts/spotify.sh b/scripts/spotify.sh index 4d1750c..081b7d2 100755 --- a/scripts/spotify.sh +++ b/scripts/spotify.sh @@ -113,3 +113,5 @@ show_menu() { ) fi } + +show_menu diff --git a/tmux-spotify.tmux b/tmux-spotify.tmux index 8beb3b7..59aa640 100755 --- a/tmux-spotify.tmux +++ b/tmux-spotify.tmux @@ -2,9 +2,5 @@ CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -main() { - # TODO: ideally make this configurable, see https://github.com/xamut/tmux-spotify/pull/1 - $(tmux bind-key -T prefix S run -b "source $CURRENT_DIR/scripts/spotify.sh && show_menu") -} - -main +# TODO: ideally make this configurable, see https://github.com/xamut/tmux-spotify/pull/1 +tmux bind-key -T prefix S run -b "$CURRENT_DIR/scripts/spotify.sh"