Sway: Difference between revisions

Arnecc (talk | contribs)
No edit summary
Arnecc (talk | contribs)
m Using greeter: removed a somewhat messy fix I added
(One intermediate revision by one other user not shown)
Line 102: Line 102:
   settings = {                                                           
   settings = {                                                           
     default_session = {                                                   
     default_session = {                                                   
       command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd 'dbus-run-session sway'";
       command = "${pkgs.greetd.tuigreet}/bin/tuigreet --time --cmd sway";
       user = "greeter";                                                   
       user = "greeter";                                                   
     };                                                                   
     };                                                                   
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 ==