sway: Use proper systemd integration

This commit is contained in:
Simon Bruder 2020-12-07 19:52:06 +01:00
parent 289f760252
commit 29ddc36591
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -38,6 +38,7 @@ in
lib.mkIf config.sbruder.gui.enable {
wayland.windowManager.sway = {
enable = true;
systemdIntegration = true;
config = {
modifier = "Mod4";
@ -245,7 +246,6 @@ lib.mkIf config.sbruder.gui.enable {
# Start on tty1
programs.zsh.profileExtra = ''
if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && command -v sway >/dev/null ; then
systemctl --user start graphical-session.target
export XDG_SESSION_TYPE="wayland"
exec sway
fi