add autostart to sway

This commit is contained in:
Cyryl Płotnicki 2022-04-24 10:03:47 +01:00
parent fbdf936b24
commit 6db24976f8

View file

@ -6,6 +6,12 @@ in {
programs.qt5ct.enable = true; programs.qt5ct.enable = true;
systemd.defaultUnit = "graphical.target"; systemd.defaultUnit = "graphical.target";
environment.loginShellInit = ''
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
fi
'';
home-manager.users.cyryl = { ... }: { home-manager.users.cyryl = { ... }: {
programs.mako.enable = true; programs.mako.enable = true;