summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorryukamish <[email protected]>2026-07-02 22:02:29 +0530
committerryukamish <[email protected]>2026-07-02 22:02:29 +0530
commit13fd5bc2626938642fe49c5da650df60369e09eb (patch)
treebe748d9e8934c3eae9c8edee4efa2e88a7877f9b /.local
parent7e58babce1db88c868b8fffd7df6510e5f4c36a3 (diff)
fix: properly start sway and audio
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/sway-launch11
1 files changed, 5 insertions, 6 deletions
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