feat(sway): setup env on startup

This commit is contained in:
Jacob Bachmann 2024-01-27 22:41:09 +01:00
parent be929afe3e
commit a62764d541
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
2 changed files with 9 additions and 2 deletions

View file

@ -3,7 +3,10 @@
enable = true;
wlr.enable = true;
# gtk portal needed to make gtk apps happy
# extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
# extraPortals = [
# pkgs.xdg-desktop-portal-wlr
# pkgs.xdg-desktop-portal-gtk
# ];
# upper has been replaced by following
config.common.default = "*";
};

View file

@ -81,8 +81,12 @@ in
menu = "${pkgs.wofi}/bin/wofi";
startup = with pkgs; [
# TODO activate with systemd prbly requires a graphical.target?
{ command = "exec systemctl --user import-environment XDG_SESSION_TYPE XDG_CURRENT_DESKTOP"; }
{ command = "${dbus}/bin/dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway"; }
{ command = "systemctl --user stop xdg-desktop-portal xdg-desktop-portal-wlr"; }
{ command = "systemctl --user start xdg-desktop-portal xdg-desktop-portal-wlr"; }
# { command = "${dbus}/bin/dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK"; }
{ command = "${dbus}/bin/dbus-update-activation-environment --all"; }
# { command = "${dbus}/bin/dbus-update-activation-environment --all"; }
{ command = "${kanshi}/bin/kanshi"; }
{ command = "${networkmanagerapplet}/bin/nm-applet"; }
{ command = "${blueman}/bin/blueman-applet"; }