Sway: Difference between revisions
imported>Onny Alternatives to autostart Sway |
imported>Onny Clarify autologin without password |
||
Line 104: | Line 104: | ||
=== Autostart Sway === | === Autostart Sway === | ||
It is possible to use greetd, a minimal login manager, to autostart Sway: | It is possible to use [[greetd]], a minimal login manager, to autostart Sway. Where <code>myuser</code> needs to be replaced with the username which should execute Sway: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
Line 119: | Line 119: | ||
</nowiki>}} | </nowiki>}} | ||
Note that this approach starts Sway without asking for a user password. See [[greetd]] for alternative configuration examples. | |||
Alternatively, | Alternatively, using <code>loginShellInit</code> Sway will automatically get started after user login. Use <code>getty</code> if you also want to skip the login and automatically get into <code>tty1</code> with <code>myuser</code>: | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> |