Skip to content

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

License

Notifications You must be signed in to change notification settings

vimhack/tmux-audio-volume

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages