diff options
| author | ryukamish <[email protected]> | 2026-07-02 22:02:29 +0530 |
|---|---|---|
| committer | ryukamish <[email protected]> | 2026-07-02 22:02:29 +0530 |
| commit | 13fd5bc2626938642fe49c5da650df60369e09eb (patch) | |
| tree | be748d9e8934c3eae9c8edee4efa2e88a7877f9b | |
| parent | 7e58babce1db88c868b8fffd7df6510e5f4c36a3 (diff) | |
fix: properly start sway and audio
| -rwxr-xr-x | .local/bin/sway-launch | 11 |
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 |
