commit 13fd5bc2626938642fe49c5da650df60369e09eb parent 7e58babce1db88c868b8fffd7df6510e5f4c36a3 Author: ryukamish <[email protected]> Date: Thu, 2 Jul 2026 22:02:29 +0530 fix: properly start sway and audio Diffstat:
| M | .local/bin/sway-launch | | | 11 | +++++------ |
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/.local/bin/sway-launch b/.local/bin/sway-launch @@ -30,10 +30,9 @@ export TZ=Asia/Kolkata export QT_QPA_PLATFORM="wayland-egl" export QT_QPA_PLATFORMTHEME="qt6ct" -# Gentoo specific pipewire launcher -if test ! -z ~/.local/bin/gentoo-pipewire-launcher; then - exec ~/.local/bin/gentoo-pipewire-launcher & +# Conditional launch with audio of sway +if test -x ~/.local/bin/gentoo-pipewire-launcher; then + exec dbus-run-session bash -c '~/.local/bin/gentoo-pipewire-launcher & sleep 1 && sway' +else + exec dbus-run-session sway fi - -# Launch sway -exec dbus-launch --exit-with-session sway