pulseaudio failsafe for brave/chromium

This commit is contained in:
Luke Smith 2020-08-28 13:31:21 -04:00
parent ec7d7bfec4
commit edde6779d4
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -7,6 +7,12 @@
# Add this when you include flatpak in your system
dbus-update-activation-environment --systemd DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
# Autostart Pulseaudio if installed and not already started by init.
# Chromium/Brave doesn't automatically start Pulse for some reason.
[ -x /usr/bin/pulseaudio ] &&
! pidof pulseaudio >/dev/null &&
setsid -f pulseaudio --start >/dev/null 2>&1
mpd & # music player daemon-you might prefer it as a service though
remaps & # run the remaps script, switching caps/esc and more; check it for more info
setbg & # set the background with the `setbg` script