Skip to content

Lock screen

hyprland tools

hypridle

pamac install hypridle

hyprlock

pamac install hyprlock

Other tools

  • idlehack
    • Monitor dbus and inhibit swayidle when Firefox or Chromium request it (typically because the user is watching video)
    • Included in manjaro sway edition

sway tools

Warning: All tools below are not actively developed anymore, use hypridle + hyprlock instead !

systemd-lock-handler

ItsDrike/dotfiles: Move to systemd-lock-handler instead of swayidle for locking:

Swayidle will likely end up dropping logind support, and they themselves describe it as unstable. For this reason, move to the suggested alternative: systemd-lock-handler, and just have swayidle run the command to trigger the logind session lock event, picked up by systemd-lock-handler.

Install

Import key from Hugo Osvaldo Barrera <hugo@whynothugo.nl> and install:

gpg --keyserver keyserver.ubuntu.com --search-keys 7880733B9D062837
pamac install systemd-lock-handler

Setup

Enable systemd user service:

systemctl --user enable --now systemd-lock-handler.service

Then add ~/.config/systemd/user/lockscreen.service (see dotfiles) and enable it:

systemctl --user enable lockscreen.service

Enter lock.target with loginctl lock-session

swayidle

swaylock

  • swaylock
  • Last release 2022-12
  • Comes pre-installed with Manjaro sway edition

Issues:

swaylock-effects

  • GitHub
  • Swaylock, with fancy effects
  • Comes pre-installed with Manjaro sway edition
  • Last release 2023-01

Replace swaylock-effects with swaylock:

sudo pacman -S swayloc