Sway: Difference between revisions
imported>Rasmus-kirk mNo edit summary |
imported>Rasmus-kirk No edit summary |
||
Line 103: | Line 103: | ||
}} | }} | ||
=== | === Autostart Sway === | ||
Add the following lines to | Add the following lines to autostart sway after user login: | ||
< | {{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 | ||
''; | ''; | ||
</ | </nowiki>}} | ||
=== Polkit === | === Polkit === |