From 9a5a1a8d848042a6032f95114d0df26887aa4eb0 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Mon, 24 Apr 2023 21:13:04 -0400 Subject: Update emacs environment on wm start --- desktop/.config/river/init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop/.config/river/init b/desktop/.config/river/init index 798dbad..b3306fb 100755 --- a/desktop/.config/river/init +++ b/desktop/.config/river/init @@ -1,11 +1,13 @@ #!/bin/sh +# TODO Probably better to put this in a script. +emacsclient -e "(progn $(for v in WAYLAND_DISPLAY DISPLAY SSH_AUTH_SOCK; do echo -n "(setenv \"$v\" \"$(eval echo \$${v})\")"; done) (message \"Imported environment\"))" & riverctl spawn "kanshi" riverctl spawn "waybar" riverctl spawn "nm-applet --indicator" riverctl spawn "swayidle timeout 300 swaylock before-sleep swaylock" -riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY QT_QPT_PLATFORM XDG_CURRENT_DESKTOP=river" -riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORM" +riverctl spawn "dbus-update-activation-environment --systemd WAYLAND_DISPLAY DISPLAY QT_QPT_PLATFORM XDG_CURRENT_DESKTOP=river" +riverctl spawn "systemctl --user import-environment WAYLAND_DISPLAY QT_QPA_PLATFORM DISPLAY" riverctl spawn "systemctl --user set-environment XDG_CURRENT_DESKTOP=river" riverctl spawn dunst riverctl spawn firefox -- cgit v1.2.3