Show audio volume icon and value in the tmux status-right.
Currently only support MacOS.
For MacOS:
brew install switchaudio-osx
Installation with Tmux Plugin Manager
Add plugin to the list of TPM plugins in your .tmux.conf
:
set -g @plugin 'windvalley/tmux-audio-volume'
set -g @speaker_muted_volume_icon ""
set -g @speaker_low_volume_icon ""
set -g @speaker_medium_volume_icon 'ﱛ'
set -g @speaker_high_volume_icon " "
set -g @headphone_icon " "
Hit prefix + I
to fetch the plugin and source it.
If format strings are added to status-right
, they should now be visible.
Add format strings (see below) to the existing status-right
tmux option.
Format strings:
#{volume-value}
#{volume-icon}
Example:
# in your .tmux.conf
set -g status-right '#{volume-icon}#{volume-value}'