aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xriverrc2
-rw-r--r--zshrc4
2 files changed, 5 insertions, 1 deletions
diff --git a/riverrc b/riverrc
index dcc6c06..bbe2100 100755
--- a/riverrc
+++ b/riverrc
@@ -145,6 +145,8 @@ riverctl map normal Super+Shift 0 set-view-tags ${ALL_TAGS}
# init
#
+dbus-update-activation-environment DISPLAY WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=river
+
riverctl spawn "swayidle timeout 600 waylock timeout 900 \"wlopm --off '*'\" resume \"wlopm --on '*'\""
riverctl keyboard-layout $(cat ~/.kblayout)
diff --git a/zshrc b/zshrc
index 7c30cb0..ee609d9 100644
--- a/zshrc
+++ b/zshrc
@@ -10,7 +10,9 @@ pgrep -x ssh-agent > /dev/null || start_ssh_agent
# Start WM?
if [[ "${TTY}" == "/dev/tty1" ]]; then
- river
+ export XDG_CURRENT_DESKTOP=river
+
+ dbus-run-session river
exit 0
fi