PoC fungerar
This commit is contained in:
commit
335d89f87a
3
scripts/next_song.sh
Executable file
3
scripts/next_song.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
$(spotify_player playback next)
|
4
scripts/play-pause.sh
Executable file
4
scripts/play-pause.sh
Executable 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
4
scripts/prev_song.sh
Executable 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
6
spotify.tmux
Executable 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"
|
Loading…
Reference in a new issue