Sway: Difference between revisions

Arnecc (talk | contribs)
No edit summary
No edit summary
Line 108: Line 108:
};                                                                       
};                                                                       
</nowiki>|name=|lang=}}
</nowiki>|name=|lang=}}
=== Automatic startup on boot ===
The snippet below will start Sway immediately on startup, without a greeter and '''without login prompt'''. Only consider using this in conjunction with [[Full Disk Encryption]]!
<syntaxhighlight lang="nix">
services.getty = {
  autologinUser = "your_username";
  autologinOnce = true;
};
environment.loginShellInit = ''
    [[ "$(tty)" == /dev/tty1 ]] && sway
'';
</syntaxhighlight>


== Configuration ==
== Configuration ==