Sway: Difference between revisions

imported>Tmpm697
Update issue with dunst need to active dbus manually when use HM
imported>Artturin
simplify swaylock fix
Line 235: Line 235:
</syntaxhighlight>
</syntaxhighlight>


=== Swaylock cannot unlock with correct password ===
=== Swaylock cannot be unlocked with the correct password ===
For swaylock to work you will need to add a file at /etc/pam.d/swaylock with "auth include login"
 
For this you will need to add the following to your system's nixos configuration:
Add the following to your NixOS configuration.


<syntaxhighlight lang="nix>
<syntaxhighlight lang="nix>
   security.pam.services.swaylock.text = ''
   security.pam.services.swaylock = {}
    # PAM configuration file for the swaylock screen locker. By default, it includes
    # the 'login' configuration file (see /etc/pam.d/login)
    auth include login
  '';
</syntaxhighlight>
</syntaxhighlight>
The `sway` option does this automatically.


[[Category:Window managers]]
[[Category:Window managers]]
[[Category:Applications]]
[[Category:Applications]]