~ruther/nixos-config

df4fbc2205d2c33f0e1a9562adaedb53a3683fcc — Frantisek Bohacek 10 months ago 2a296a9
feat: make sure to redirect dwl stdout
1 files changed, 6 insertions(+), 5 deletions(-)

M home/modules/profiles/desktop/dwl/default.nix
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

Do not follow this link