Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 959 Bytes

README.md

File metadata and controls

48 lines (31 loc) · 959 Bytes

tmux-audio-volume

Show audio volume icon and value in the tmux status-right.

Currently only support MacOS.

Installation

Requirements

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.

Usage

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}'