16 lines
325 B
Bash
Executable File
16 lines
325 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# 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
|