summaryrefslogtreecommitdiff
path: root/xinitrc
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-01-10 17:34:28 -0800
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-01-10 17:34:53 -0800
commitb90854bf91bba05e702e6081b5a3f62bf9404540 (patch)
treeba035afa573d4f25af8b15feee457f1db79afcd2 /xinitrc
parent23189d58601ab096259826038a30afd5a9ab30fb (diff)
init: auto config for pulse vs pipewire
Diffstat (limited to 'xinitrc')
-rw-r--r--xinitrc10
1 files changed, 7 insertions, 3 deletions
diff --git a/xinitrc b/xinitrc
index 88e7a9a..9f7e1d3 100644
--- a/xinitrc
+++ b/xinitrc
@@ -2,11 +2,15 @@ set -x
xset r rate 210 35
setxkbmap -layout us,us -variant ,colemak -option grp:rctrl_toggle
-pulseaudio -k
-pulseaudio -D
+
+if [[ $(uname -a) == *"gentoo"* ]]; then
+AUDIO="gentoo-pipewire-launcher restart & disown"
+else
+AUDIO="pulseaudio -k; pulseaudio -D"
+fi
~/.fehbg &
slstatus &
unclutter --timeout 3 --hide-on-key-press &
WM=${2:-dwm}
-dbus-launch --exit-with-session ${WM}
+exec dbus-launch --exit-with-session bash -c "${AUDIO}; exec ${WM}"