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