This commit is contained in:
@@ -8,4 +8,11 @@ monitors=$(hyprctl monitors -j | jq -r '.[] | select( .name | contains ("DP")) |
|
||||
while IFS= read -r m; do
|
||||
grim -o "$m" "/tmp/lockscreen/$m.png" || true
|
||||
done <<< "$monitors"
|
||||
hyprlock
|
||||
|
||||
# Only lock if not already running
|
||||
if [ -z "$(pgrep hyprlock)" ]
|
||||
then
|
||||
exec hyprlock
|
||||
else
|
||||
echo "Already locked"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user