Skip to content

Invoke locker on closing lid?

Removed before it was archived.

1 points3 comments
Open on Reddit
About this post
Posted
Archived
Deleted on
Score
1 · 100% up
Kind
Text
ID
5oneqq

3 comments

You could write a service to trigger the lock when the lid closes, the way i like to do it is with xss-lock from the aur that lays in the background and responds to system calls.

1 points

Use acpid, it can execute scripts on acpi events like lid close, lid open, adapter plugged or adapter unplugged etc.

Once you have it installed, enable it with systemd and start it. For setting up events, the arch wiki has a pretty good guide (haven't looked at others but there's probably loads).

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.