Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Lock systemd sessions when laptop is shake

License

NotificationsYou must be signed in to change notification settings

cyrinux/gyrolock

Repository files navigation

gyroscope

Lock systemd sessions when the laptop is shake or move fast based ongyroscope values

Tested on a Dell Latitude 7420.

Install

Available as archlinux AUR packagegyrolock. This will install alsosystemd-lock-handler AUR package andswaylock.

Activate

sudo systemctl enable --now gyrolock.servicesystemctl --user enable --now systemd-lock-handler.servicesystemctl --user enable --now swaylock.service

Settings

Sensitivity can be set in an systemd unit override withSENSITIVITY env var.Try your own value, default is 5.

Debug

Get sensors values with:

$ DEBUG=1 SENSITIVITY=5 sudo ./gyrolock

[8]ページ先頭

©2009-2025 Movatter.jp