~ruther/nixos-config

d60a63cdb43be80df05b3257797f5438a1586b9b — Frantisek Bohacek 10 months ago dc8fe5c
fix: properly import environment for dwl and qtile
M home/modules/profiles/desktop/dwl/default.nix => home/modules/profiles/desktop/dwl/default.nix +2 -4
@@ 39,11 39,9 @@ in {
    };

    home.file.".sessions/start-dwl".source = pkgs.writeShellScript "start-dwl" ''
    export XDG_CURRENT_DESKTOP="wlroots"
    export GDK_BACKEND=wayland QT_QPA_PLATFORM=wayland
    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 WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
          systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
          dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP DISPLAY
          systemctl start --user wlr-session.target
        ''}" &
      pid=$!

M home/modules/profiles/desktop/qtile/config/autostart.sh => home/modules/profiles/desktop/qtile/config/autostart.sh +2 -0
@@ 1,5 1,7 @@
#!/usr/bin/env sh

dbus-update-activation-environment --systemd DISPLAY XDG_CURRENT_DESKTOP

# systemctl start --user wm-services.target
systemctl start --user xorg-wm-services.target


Do not follow this link