First commit

This commit is contained in:
2026-02-22 17:28:02 +01:00
parent 7a70268785
commit 6bacf1878e
9011 changed files with 114470 additions and 0 deletions
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
# If ANY external monitor exists, do NOT lock on lid close (clamshell use-case).
# Your internal panel is eDP-1.
# Anything not starting with eDP is treated as external.
if hyprctl monitors -j | grep -q '"name":"[^"]\+"' ; then
if hyprctl monitors -j | grep -q '"name":"DP-1"' ; then
exit 0
fi
fi
# Generic: if any monitor is not eDP-1, assume external exists.
if hyprctl monitors -j | grep -q '"name":"[^"]\+"' && hyprctl monitors -j | grep -vq '"name":"eDP-1"'; then
exit 0
fi
exec hyprlock