- Notifications
You must be signed in to change notification settings - Fork0
Lock systemd sessions when laptop is shake
License
NotificationsYou must be signed in to change notification settings
cyrinux/gyrolock
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Lock systemd sessions when the laptop is shake or move fast based ongyroscope values
Tested on a Dell Latitude 7420.
Available as archlinux AUR packagegyrolock
. This will install alsosystemd-lock-handler
AUR package andswaylock
.
sudo systemctl enable --now gyrolock.servicesystemctl --user enable --now systemd-lock-handler.servicesystemctl --user enable --now swaylock.service
Sensitivity can be set in an systemd unit override withSENSITIVITY
env var.Try your own value, default is 5.
Get sensors values with:
$ DEBUG=1 SENSITIVITY=5 sudo ./gyrolock
About
Lock systemd sessions when laptop is shake
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published