目前,我将i3与xscreensaver结合使用。我希望将loginctl配置为lock-session和lock-sessions。这该怎么做?
lock-session [ID...], unlock-session [ID...]
Activates/deactivates the screen lock on one or more sessions, if the
session supports it. Takes one or more session identifiers as arguments.
If no argument is specified, the session of the caller is
locked/unlocked.
lock-sessions, unlock-sessions
Activates/deactivates the screen lock on all current sessions supporting
it.发布于 2021-10-10 20:36:39
light-locker对loginctl很好,所以我建议安装它并将类似的内容添加到xsession中:
light-locker --lock-on-suspend --lock-on-lid --lock-after-screensaver=30 &然后还可以在.i3/config中配置快捷方式:
bindsym $mod+l exec light-locker-command --lockhttps://unix.stackexchange.com/questions/620782
复制相似问题