https://github.com/olback/picokey
https://github.com/olback/picokey
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/olback/picokey
- Owner: olback
- Created: 2021-06-03T07:14:53.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T23:40:48.000Z (almost 5 years ago)
- Last Synced: 2025-04-02T22:14:36.890Z (about 1 year ago)
- Language: Rust
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Picokey
```bash
git clone git@github.com/olback/picokey && cd picokey
head -c 44 < /dev/urandom > keyiv
cd pico
mkdir build && cd build
cmake ..
cd ..
tools/build.sh
# Boot into bootloader now ... continue
tools/flash.sh
cd ..
mkdir ~/.config/picokey
mkdir -p ~/.config/systemd/user/
cp picokey.service ~/.config/systemd/user
cd host
cargo install --path .
```
Edit `~/.config/picokey/Config.toml`:
```toml
# Command to unlock (e.g. kill screen saver)
unlock-command = "pkill swaylock"
# 8 bytes per id in base64
pico-ids = [
"AAAAAAAAAAA" # Example id
]
```
Start service:
```bash
systemctl enable --user picokey
systemctl start --user picokey
```