A simple utility allowing you to share audio when using discord on linux. This works by routing your application audio and your mic input into a single audio source, which is then used by discord as the input device.
In order to know the pulseaudio name for your devices, try checking the input and output names used on discord. They will be similiar to the ones in pulseaudio.
- Discord App (We currently do not have support for Discord on the browser)
- Pulseaudio is required
- This utility uses Rofi to create a prompt to select an application. Follow the installation instructions to install rofi.
Clone this repository to any directory you like
git clone https://github.com/aneeshsharma/DiscordAudioShare-Linux
To install, run install.sh
cd DiscordAudioShare-Linux
chmod +x install.sh
./install.sh
The install script will ask for sudo password.
Run discordaudioshare
to launch a rofi prompt asking you to select the application
to share audio of.
Now, you can add a hotkey/shortcut using any hotkey utility to discordaudioshare
.
For example, in sxhkd
, you can add the following
# Discord Audio Share
super + a
discordaudioshare
To uninstall discordaudioshare
, clone this repository and run uninstall.sh
git clone https://github.com/aneeshsharma/DiscordAudioShare-Linux
cd DiscordAudioShare-Linux
chmod +x uninstall.sh
./uninstall.sh
When running discordaudioshare
, a prompt shows up asking you to select an application.
You can select the application you want to share audio of from there.
- Make sure the application is playing audio before selecting. If the application isn't playing any audio, nothing would happen.
- You should be in a discord call before using this
Running discordaudioshare
again would stop sharing audio.
shareaudioprompt.sh
- Opens a prompt to select an application to share audio ofshareaudio.sh <application_name>
- Starts sharing audio of the<application_name>
stopshareaudio.sh
- Stops sharing audio
Special thanks to @hotmonkeywings for writing the share audio script.
The share audio script was referenced and altered from a reddit post here