Stöd för add öka och minska volymen
This commit is contained in:
parent
a9dfe56403
commit
4abb8a5ce6
|
@ -7,3 +7,5 @@ Ett enkelt tmux-plugin för att styra spotify-player från tmux.
|
||||||
- `prefix + Space` - Pausa/Spela upp låt
|
- `prefix + Space` - Pausa/Spela upp låt
|
||||||
- `prefix + N` - Nästa låt
|
- `prefix + N` - Nästa låt
|
||||||
- `prefix + P` - Föregående låt
|
- `prefix + P` - Föregående låt
|
||||||
|
- `prefix + +` - Höj volymen
|
||||||
|
- `prefix + -` - Sänk volymen
|
||||||
|
|
3
scripts/decrease.sh
Executable file
3
scripts/decrease.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
$(spotify_player playback volume --offset -- -5)
|
3
scripts/increase.sh
Executable file
3
scripts/increase.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
$(spotify_player playback volume --offset +5)
|
|
@ -4,3 +4,5 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
tmux bind-key Space run-shell "$CURRENT_DIR/scripts/play-pause.sh"
|
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 N run-shell "$CURRENT_DIR/scripts/next_song.sh"
|
||||||
tmux bind-key P run-shell "$CURRENT_DIR/scripts/prev_song.sh"
|
tmux bind-key P run-shell "$CURRENT_DIR/scripts/prev_song.sh"
|
||||||
|
tmux bind-key + run-shell "$CURRENT_DIR/scripts/increase.sh"
|
||||||
|
tmux bind-key - run-shell "$CURRENT_DIR/scripts/decrease.sh"
|
||||||
|
|
Loading…
Reference in a new issue