feat(sway): setup env on startup
This commit is contained in:
parent
be929afe3e
commit
a62764d541
2 changed files with 9 additions and 2 deletions
|
|
@ -3,7 +3,10 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
wlr.enable = true;
|
wlr.enable = true;
|
||||||
# gtk portal needed to make gtk apps happy
|
# 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
|
# upper has been replaced by following
|
||||||
config.common.default = "*";
|
config.common.default = "*";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -81,8 +81,12 @@ in
|
||||||
menu = "${pkgs.wofi}/bin/wofi";
|
menu = "${pkgs.wofi}/bin/wofi";
|
||||||
startup = with pkgs; [
|
startup = with pkgs; [
|
||||||
# TODO activate with systemd prbly requires a graphical.target?
|
# 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 --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 = "${kanshi}/bin/kanshi"; }
|
||||||
{ command = "${networkmanagerapplet}/bin/nm-applet"; }
|
{ command = "${networkmanagerapplet}/bin/nm-applet"; }
|
||||||
{ command = "${blueman}/bin/blueman-applet"; }
|
{ command = "${blueman}/bin/blueman-applet"; }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue