Jump to content

Sway: Difference between revisions

12 bytes added ,  16 February 2022
no edit summary
imported>Rasmus-kirk
mNo edit summary
imported>Rasmus-kirk
No edit summary
Line 103: Line 103:
}}
}}


=== Auto-start Sway ===
=== Autostart Sway ===
Add the following lines to atuostart sway after user login:
Add the following lines to autostart sway after user login:
<syntaxhighlight lang="nix">
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
   environment.loginShellInit = ''
   environment.loginShellInit = ''
     if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
     if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
Line 111: Line 111:
     fi
     fi
   '';
   '';
</syntaxhighlight>
</nowiki>}}


=== Polkit ===
=== Polkit ===
Anonymous user