Skip to content

Commit

Permalink
Only control cmus within tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
fortes committed Oct 7, 2024
1 parent fff64cc commit c77dc81
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions stowed-files/tmux/.config/tmux/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -209,26 +209,7 @@ if-shell 'test -n "${IS_DOCKER}"' {
}
# Music control, when available
if-shell 'command -v playerctl' {
# Pause music via 'u', or click on right status
bind-key -N "Pause music" u {
run-shell -b "music-control"
}
bind-key -N "Pause music" -Troot MouseUp1StatusRight {
run-shell -b "music-control"
}
# Music menu via 'U' or right click on right status
bind-key -N "Show music menu" U {
run-shell -b "tmux-music-menu"
}
bind-key -N "Show music menu" -Troot MouseUp3StatusRight {
run-shell -b "tmux-music-menu"
}
}
# Fallback to cmus on Mac, since playerctl isn't available
if-shell '! command -v playerctl && command -v cmus' {
if-shell 'command -v cmus-remote' {
# Pause music via 'u', or click on right status
bind-key -N "Pause music" u {
run-shell -b "cmus-remote --pause"
Expand Down

0 comments on commit c77dc81

Please sign in to comment.