From fbc42104c01eef896c6c094c332eb7304d2cec02 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 29 Nov 2020 09:09:30 -0500 Subject: [PATCH] pulseaudio fix for artix --- .config/pulse/daemon.conf | 4 ++++ .config/x11/xprofile | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 .config/pulse/daemon.conf diff --git a/.config/pulse/daemon.conf b/.config/pulse/daemon.conf new file mode 100644 index 0000000..ef900f1 --- /dev/null +++ b/.config/pulse/daemon.conf @@ -0,0 +1,4 @@ +# Never exit pulseaudio if idle. This is to deal with an issue of Chromium +# browsers not properly starting Pulseaudio by themselves. When the underlying +# issue is solved, this file/directory should be removed. +exit-idle-time = -1 diff --git a/.config/x11/xprofile b/.config/x11/xprofile index fe5f90e..85bbec7 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -11,3 +11,8 @@ xcompmgr & # xcompmgr for transparency dunst & # dunst for notifications xset r rate 300 50 & # Speed xrate up unclutter & # Remove mouse when idle + +# This line autostarts an instance of Pulseaudio that does not exit on idle. +# This is "necessary" on Artix due to a current bug between PA and +# Chromium-based browsers where they fail to start PA and use dummy output. +! pidof -s pulseaudio >/dev/null 2>&1 && setsid -f pulseaudio --start --exit-idle-time=-1 >/dev/null 2>&1