Skip to content
Beau Hastings edited this page Oct 27, 2020 · 4 revisions

i3-volume can be used with XOSD notifications. XOSD is a library for displaying an on-screen display on your X display. Setup is simple and straight forward and requires little modification to your i3-volume commands.

Example with PulseAudio

bindsym XF86AudioRaiseVolume exec --no-startup-id $volumepath/volume -n -t $statuscmd -u $statussig -N xosd up $volumestep
bindsym XF86AudioLowerVolume exec --no-startup-id $volumepath/volume -n -t $statuscmd -u $statussig -N xosd down $volumestep
bindsym XF86AudioMute        exec --no-startup-id $volumepath/volume -n -t $statuscmd -u $statussig -N xosd mute

Example with amixer

bindsym XF86AudioRaiseVolume exec --no-startup-id $volumepath/volume -an -t $statuscmd -u $statussig -N xosd up $volumestep
bindsym XF86AudioLowerVolume exec --no-startup-id $volumepath/volume -an -t $statuscmd -u $statussig -N xosd down $volumestep
bindsym XF86AudioMute        exec --no-startup-id $volumepath/volume -an -t $statuscmd -u $statussig -N xosd mute

Then reload i3wm with mod+Shift+r

Clone this wiki locally