-
Notifications
You must be signed in to change notification settings - Fork 36
Getting Started
This guide will help you get i3-volume up and running quickly.
Before installing i3-volume, ensure you have:
- PipeWire - Audio server (usually pre-installed on modern Linux distributions)
-
WirePlumber - Session manager (provides
wpctlcommand) -
Dependencies:
awk,bc,jq
Check if PipeWire and WirePlumber are installed:
# Check PipeWire
systemctl --user status pipewire pipewire-pulse
# Check WirePlumber (wpctl command)
which wpctl
wpctl statusIf PipeWire is not running, start it:
systemctl --user start pipewire pipewire-pulse
systemctl --user enable pipewire pipewire-pulsegit clone https://github.com/hastinbe/i3-volume.git ~/i3-volumechmod +x ~/i3-volume/volumeTest that i3-volume works:
~/i3-volume/volume up 5
~/i3-volume/volume down 5
~/i3-volume/volume muteIf these commands work, you're ready to configure!
mkdir -p ~/.config/i3-volumeCreate ~/.config/i3-volume/config with basic settings:
# Enable notifications
DISPLAY_NOTIFICATIONS=true
NOTIFICATION_METHOD="dunst"
# Set default step size
DEFAULT_STEP=5~/i3-volume/volume -n up 5You should see a notification appear!
Add to ~/.config/i3/config:
# Path to volume control
set $volumepath ~/i3-volume
# Volume control keybindings
bindsym XF86AudioRaiseVolume exec --no-startup-id $volumepath/volume -n up 5
bindsym XF86AudioLowerVolume exec --no-startup-id $volumepath/volume -n down 5
bindsym XF86AudioMute exec --no-startup-id $volumepath/volume -n muteReload i3wm: mod+Shift+r
See Keybindings for examples with sxhkd, bspwm, and others.
Add to ~/.config/i3blocks/config:
[i3volume]
label=🔊
command=~/i3-volume/volume output i3blocks
interval=once
signal=10Note: Mouse wheel scrolling on the volume block works automatically!
Add to your polybar config:
[module/i3-volume]
type = custom/script
tail = true
label = %output%
exec = ~/i3-volume/volume listen "%i %v %p\n"
scroll-up = ~/i3-volume/volume up
scroll-down = ~/i3-volume/volume down
click-left = ~/i3-volume/volume muteSee Installation for more details.
After installation, verify everything works:
-
volume upincreases volume -
volume downdecreases volume -
volume mutetoggles mute - Notifications appear when using
-nflag - Keyboard volume keys work (if configured)
- Status bar shows volume (if configured)
-
volume list sinksshows your audio devices
Now that you have i3-volume installed and working:
- Customize Configuration - See Configuration for all options
- Explore Features - Check out Features for advanced capabilities
- See Examples - Look at Examples for common use cases
- Set Up Profiles - Create volume profiles for different scenarios
- Configure Per-Sink Settings - Different settings for different devices
- Make sure you reloaded your window manager config
- Check that the path to
volumescript is correct - Verify keyboard keys are mapped correctly
- Check that your notification daemon is running (dunst, notify-osd, etc.)
- Verify
DISPLAY_NOTIFICATIONS=truein config or use-nflag - See Notifications for setup help
- Make sure you're using the
listencommand oroutputcommand - Verify the signal matches your status bar configuration
- Check that your status bar is configured correctly
For more help, see Common Issues.
- Documentation: Browse the wiki pages
- Examples: See Examples for common setups
- Troubleshooting: Check Common Issues
- Features: Read Features for complete documentation
- Installation - Detailed installation instructions
- Configuration - Complete configuration guide
- Features - All available features
- Examples - Common use cases and recipes
- Common Issues - Troubleshooting help