aboutsummaryrefslogtreecommitdiff
path: root/sway/run-sway.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sway/run-sway.sh')
-rwxr-xr-xsway/run-sway.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/run-sway.sh b/sway/run-sway.sh
new file mode 100755
index 0000000..6980cd4
--- /dev/null
+++ b/sway/run-sway.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if pidof dbus-daemon > /dev/null; then
+ exec sway > ~/.sway.log
+else
+ exec dbus-run-session -- sway > ~/.sway.log
+fi