diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2023-04-24 21:13:04 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2023-04-24 21:15:01 -0400 |
commit | 9a5a1a8d848042a6032f95114d0df26887aa4eb0 (patch) | |
tree | d29f8745de0cccd5e3b02bb9d54c75287bdf9b74 /desktop/.config/river | |
parent | b8579b0dfcecc7fd88d807f1550bcb6a5103f070 (diff) |
Update emacs environment on wm start
Diffstat (limited to 'desktop/.config/river')
-rwxr-xr-x | desktop/.config/river/init | 6 |
1 files 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 |