summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-12-03 07:41:32 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-12-03 07:41:32 -0500
commitb30ca735b60e5df2c30ab4eb7a6fe0eb0e7ecab7 (patch)
treede73d4f3704cae325521ebb0cab9d08d6bd8f154
parentbfd7ef110c3a205dc13ddb6c63d4c0d19f13ceaa (diff)
downloadeibhear-b30ca735b60e5df2c30ab4eb7a6fe0eb0e7ecab7.tar.gz
eibhear-b30ca735b60e5df2c30ab4eb7a6fe0eb0e7ecab7.tar.zst
eibhear-b30ca735b60e5df2c30ab4eb7a6fe0eb0e7ecab7.zip
possible PA fix for arch machines
-rwxr-xr-x.config/x11/xprofile4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/x11/xprofile b/.config/x11/xprofile
index 85bbec7..34ed7b8 100755
--- a/.config/x11/xprofile
+++ b/.config/x11/xprofile
@@ -15,4 +15,6 @@ 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
+pidof -s runit &&
+ pidof -s ! pidof -s pulseaudio >/dev/null 2>&1 &&
+ setsid -f pulseaudio --start --exit-idle-time=-1 >/dev/null 2>&1