M home/modules/profiles/desktop/dwl/default.nix => home/modules/profiles/desktop/dwl/default.nix +6 -5
@@ 39,11 39,12 @@ in {
};
home.file.".sessions/start-dwl".source = pkgs.writeShellScript "start-dwl" ''
- export XDG_CURRENT_DESKTOP=wlroots XDG_BACKEND=wayland QT_QPA_PLATFORM=wayland MOZ_ENABLE_WAYLAND=1 _JAVA_AWT_WM_NONREPARENTING=1
- dwl -s "${pkgs.writeShellScript "dwl-internal" ''
- dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
- systemctl start --user wlr-session.target
- ''}" &
+ export XDG_CURRENT_DESKTOP=wlroots XDG_BACKEND=wayland QT_QPA_PLATFORM=wayland MOZ_ENABLE_WAYLAND=1 _JAVA_AWT_WM_NONREPARENTING=1
+ dwl -s "${pkgs.writeShellScript "dwl-internal" ''
+ exec <&-
+ dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
+ systemctl start --user wlr-session.target
+ ''}" &
pid=$!
# Put something here
wait $pid