Move omarchy-lock-screen to omarchy-system-lock to fit with the others

This commit is contained in:
David Heinemeier Hansson
2026-04-29 15:08:20 +02:00
parent a7593ade7a
commit 74a3797cf0
7 changed files with 11 additions and 5 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# Locks the system using hyprlock, but not before ensuring 1password has also been locked, and the screensaver stopped.
# Lock the screen
pidof hyprlock || hyprlock &
# Set keyboard layout to default (first layout)
hyprctl switchxkblayout all 0 > /dev/null 2>&1
# Ensure 1password is locked
if pgrep -x "1password" >/dev/null; then
1password --lock &
fi
# Avoid running screensaver when locked
pkill -f org.omarchy.screensaver