aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2026-10-23 23:45:35 +0200
committerbozo.kopic <bozo@kopic.xyz>2026-10-23 23:45:35 +0200
commit7ba2f3494fbf93c06364858d6bddd4aefc9924c7 (patch)
tree16c66392edef4b2625a7f93c81b180d38e047270 /sway
parentbb2dae2aaafab0bb7f1c1d03dc6ebe10deee0b24 (diff)
.
Diffstat (limited to 'sway')
-rwxr-xr-xsway/init.sh3
-rwxr-xr-xsway/run-sway.sh4
2 files changed, 4 insertions, 3 deletions
diff --git a/sway/init.sh b/sway/init.sh
index 903d4ea..856a234 100755
--- a/sway/init.sh
+++ b/sway/init.sh
@@ -7,9 +7,6 @@ if command -v gsettings >/dev/null; then
gsettings set org.gnome.desktop.interface cursor-size 32
fi
-export QT_QPA_PLATFORM=wayland
-export XDG_CURRENT_DESKTOP=sway
-
os_id=$(. /etc/os-release && echo $ID)
if command -v systemctl >/dev/null; then
diff --git a/sway/run-sway.sh b/sway/run-sway.sh
index 9141b8e..3b7b01b 100755
--- a/sway/run-sway.sh
+++ b/sway/run-sway.sh
@@ -2,9 +2,13 @@
exec >~/.sway.log 2>&1
+export QT_QPA_PLATFORM=wayland
+export XDG_CURRENT_DESKTOP=sway
+
if ( ( command -v systemctl && systemctl --user is-system-running ) ||
pgrep -U $(id -u) dbus-daemon ) >/dev/null; then
exec sway
+
else
exec dbus-run-session -- sway
fi