How to Configure Pulseaudio in i3wm⚓
This article will explain how to configure Pulseaudio in i3wm. Doing so will enable the volume for the environment.
The following needs to be installed from Pacman:
- PulseAudio Volume Control (pavucontrol)
Where to Begin⚓
After installing all the pre-requisites, it's likely that although the PulseAudio Volume Control will show that the volume is on and enabled, there won't actually be any sound. Run the following commands to see what state Pulseaudio is actually in prior to moving forward:
This will likely say that the daemon is already running (as long as the machine has been rebooted), but will also display the following:
This is likely a permissions issue with the way i3 interacts with Pulseaudio, but there are also additional configurations that need to be made.
Open a terminal and add the following to /etc/pulse/default.pa:
This will define the audio output, although the permissions will still need to be configured.
- Open Manjaro Settings Manager and open User Accounts.
- Select the username and then click on the Account Type (Administrator), then select Show Groups.
- Check the Member box for audio.
- This will display a prompt that the following additional groups will also need to be checked
- Apply the configuration changes.
- Since the default permissions have been changed, the original config file will need to regenerate after a reboot, meaning the ~/.config/pulse folder will need to be deleted.
- Open a terminal and type in
sudo rm -rf ~/.config/pulse
- Reboot the machine
- Log back in as the user and open a terminal.
- Type in pulseaudio -v, which should now display a wall of syntax indicating that Pulseaudio is not only running, but is also operating as it should and playing sound.