about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/user/sternenseemann/services/sway.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/user/sternenseemann/services/sway.nix b/modules/user/sternenseemann/services/sway.nix
index f34cf194..12070244 100644
--- a/modules/user/sternenseemann/services/sway.nix
+++ b/modules/user/sternenseemann/services/sway.nix
@@ -9,7 +9,10 @@ let
     ;
 
   bins = (getBins pkgs.pulseaudioLight [ "pactl" ])
-      // (getBins pkgs.dbus [ "dbus-run-session" ])
+      // (getBins pkgs.dbus [
+        "dbus-run-session"
+        "dbus-update-activation-environment"
+      ])
       // (getBins cfg.package [ "sway" ])
       // (getBins pkgs.i3status [ "i3status" ])
       // (getBins pkgs.brightnessctl [ "brightnessctl" ])
@@ -160,6 +163,7 @@ in {
       "sway/config".text = ''
         # correct DPI after hotplugging
         exec ${pkgs.xorg.xrdb}/bin/xrdb -load ${dpiXresources}
+        exec ${bins.dbus-update-activation-environment} WAYLAND_DISPLAY
 
         # set the one true modifier
         set $mod Mod4