From 13fd5bc2626938642fe49c5da650df60369e09eb Mon Sep 17 00:00:00 2001 From: ryukamish Date: Thu, 2 Jul 2026 22:02:29 +0530 Subject: fix: properly start sway and audio --- .local/bin/sway-launch | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/sway-launch b/.local/bin/sway-launch index abd57b5..7ca5663 100755 --- 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 -- cgit v1.3