summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-04-26 13:11:56 +0200
committerRobert Günzler <r@gnzler.io>2021-04-26 13:11:56 +0200
commitf97aa112b518afae5ee62ddbdbcb03fdae57559c (patch)
tree355e311eff544fc3db40d3bd683482d2675e3d3c
parent3ff56ad51682f3e13cf09e7e67932a1363911442 (diff)
sway: remove explicit dbus launching from config/run script
-rw-r--r--.config/sway/binds.conf2
-rw-r--r--.config/sway/config8
-rwxr-xr-xbin/sway-run4
3 files changed, 6 insertions, 8 deletions
diff --git a/.config/sway/binds.conf b/.config/sway/binds.conf
index e7bab16..e5b5c42 100644
--- a/.config/sway/binds.conf
+++ b/.config/sway/binds.conf
@@ -30,7 +30,7 @@ bindsym $mod+Shift+e exec swaynag \
     -t warning \
     -m 'exit: what now?' \
     -b 'exit' 'swaymsg exit' \
-    -b 'poweroff' 'daos poweroff' \
+    -b 'poweroff' 'doas poweroff' \
     -b 'reboot' 'doas reboot'
 
 bindsym $mod+Shift+backspace exec lock
diff --git a/.config/sway/config b/.config/sway/config
index 3ad2510..15fe350 100644
--- a/.config/sway/config
+++ b/.config/sway/config
@@ -6,21 +6,19 @@ output * adaptive_sync on
 
 exec light -S 80
 
-exec dbus-update-activation-environment --all
+#exec dbus-update-activation-environment --all
 exec once pipewire
-exec once mako
 exec once oguri
 exec once kanshi
 exec once waybar
+exec once gammastep
+exec once foot -s
 exec once swayidle -w \
 	timeout 540 'lock' \
 	timeout 800 'swaymsg output \* dpms off' \
 	     resume 'swaymsg output \* dpms on' \
 	before-sleep 'lock' \
 	lock 'lock'
-exec once gammastep
-# spawn foot server
-exec once foot -s
 
 # for_window [app_id=Alacritty] max_render_time 2
 # for_window [app_id=firefox] max_render_time 3
diff --git a/bin/sway-run b/bin/sway-run
index cfb2e0a..9c22673 100755
--- a/bin/sway-run
+++ b/bin/sway-run
@@ -1,7 +1,6 @@
 #!/bin/sh
 set -e
 
-
 SWAY_BIN=${SWAY_BIN:-sway}
 SWAY_ARGS=${SWAY_ARGS:-}
 LOGFILE=/tmp/sway.log
@@ -15,5 +14,6 @@ LOGFILE=/tmp/sway.log
 	printf -- "---\n"
 ) >>${LOGFILE}
 
-exec dbus-run-session -- ${SWAY_BIN} ${SWAY_ARGS} 1>&2 2>>${LOGFILE}
+exec ${SWAY_BIN} ${SWAY_ARGS} 1>&2 2>>${LOGFILE}
+#exec dbus-run-session -- ${SWAY_BIN} ${SWAY_ARGS} 1>&2 2>>${LOGFILE}
 # exec dbus-launch --exit-with-session ${SWAY_BIN} ${SWAY_ARGS} 1>&2 2>>${LOGFILE}