aboutsummaryrefslogtreecommitdiff
path: root/sway/run-sway.sh
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2024-06-01 21:49:19 +0200
committerbozo.kopic <bozo@kopic.xyz>2024-06-01 21:49:19 +0200
commit9dd5082688f18e0f887de9ff31d1fb28ba5aa14c (patch)
tree374e46fdb7bf3fd047faa5f3c7a628511c0964fe /sway/run-sway.sh
parent2718a4de5389cfe5287f2289b0e46d8509e2aeab (diff)
.
Diffstat (limited to 'sway/run-sway.sh')
-rwxr-xr-xsway/run-sway.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/run-sway.sh b/sway/run-sway.sh
index ed0c0d7..763d83f 100755
--- a/sway/run-sway.sh
+++ b/sway/run-sway.sh
@@ -1,9 +1,10 @@
#!/bin/sh
+exec > ~/.sway.log 2>&1
if ( ( command -v systemctl && systemctl --user is-system-running ) ||
pgrep -U $(id -u) dbus-daemon ) > /dev/null; then
- exec sway > ~/.sway.log 2>&1
+ exec sway
else
- exec dbus-run-session -- sway > ~/.sway.log 2>&1
+ exec dbus-run-session -- sway
fi