Files
Arch_Hyprland_dots/.config/blacklayer/idle-lock.sh
T
2026-01-29 01:19:22 +03:00

13 lines
270 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
CONF="$HOME/.config/blacklayer/blacklayer.conf"
[ -f "$CONF" ] && source "$CONF"
# hypridle çağırdı ama lock kapalıysa → çık
[ "$run_lock" != "true" ] && exit 0
# zaten kilitliyse tekrar kilitleme
pgrep -x hyprlock >/dev/null && exit 0
hyprlock