sway: Use proper systemd integration
This commit is contained in:
parent
289f760252
commit
29ddc36591
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue