Lock 1password on screen lock (#564)

* feat: lock 1password on screen lock

* chore: add migration for omarchy-lock-screen
This commit is contained in:
RaphaelKimmig
2025-08-08 21:11:35 +02:00
committed by GitHub
parent 32e091d2e5
commit ba0666999e
4 changed files with 19 additions and 3 deletions

12
bin/omarchy-lock-screen Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash
# Lock the screen
pidof hyprlock || hyprlock
# Ensure 1password is locked
if pgrep -x "1password" >/dev/null; then
1password --lock
fi
# Avoid running screensaver when locked
pkill -f "alacritty --class Screensaver"