Sway: Difference between revisions

Tie-ling (talk | contribs)
dimming, screen sharing, inhibit idle
add instructions on how to fix issues with systemd user services not getting the environment
Line 120: Line 120:
     [[ "$(tty)" == /dev/tty1 ]] && sway
     [[ "$(tty)" == /dev/tty1 ]] && sway
'';
'';
</syntaxhighlight>
</syntaxhighlight>When launched directly from the TTY sway won't inherit the user environment. This can cause issues with systemd user services such as application launchers or swayidle. To fix this add the following to your home-manager configuration:{{file|home.nix|nix|<nowiki>
wayland.windowManager.sway.systemd.variables = ["--all"];
</nowiki>}}


== Configuration ==
== Configuration ==