PoC fungerar

This commit is contained in:
FredzyW 2024-05-27 10:02:41 +02:00
commit 335d89f87a
5 changed files with 17 additions and 0 deletions

0
README.md Normal file
View file

3
scripts/next_song.sh Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
$(spotify_player playback next)

4
scripts/play-pause.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# fetching the value of "tpm_plugins" option
$(spotify_player playback play-pause)

4
scripts/prev_song.sh Executable file
View file

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# fetching the value of "tpm_plugins" option
$(spotify_player playback previous)

6
spotify.tmux Executable file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
tmux bind-key Space run-shell "$CURRENT_DIR/scripts/play-pause.sh"
tmux bind-key N run-shell "$CURRENT_DIR/scripts/next_song.sh"
tmux bind-key P run-shell "$CURRENT_DIR/scripts/prev_song.sh"