Sway: Difference between revisions
dimming, screen sharing, inhibit idle |
add section for missing environment variables to troubleshooting section |
||
| (One intermediate revision by the same user not shown) | |||
| 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 == | ||
| Line 251: | Line 253: | ||
hardware.graphics.enable = true; | hardware.graphics.enable = true; | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== Systemd user services missing environment variables (PATH, etc) === | |||
When sway is launched with out display manager systemd won't inherit the users environment variables. To fix this add the following to your home-manager configuration: | |||
{{File|3=wayland.windowManager.sway.systemd.variables = ["--all"];|name=home.nix|lang=nix}} | |||
=== Touchscreen input bound to the wrong monitor in multi-monitor setups === | === Touchscreen input bound to the wrong monitor in multi-monitor setups === | ||