Files
hyprland-rising/hypr/scripts/lock.sh
T
aibrashandClaude Sonnet 5.5 211b3e626c Drop the remaining sway references
lock.sh no longer falls back to swaylock (hyprlock instead), and the
comments in hyprland.lua and the README no longer mention sway.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-30 14:28:06 +05:00

9 lines
308 B
Bash
Executable File

#!/bin/sh
# Lock the screen with DankMaterialShell (matches the shell theme); hyprlock only if DMS is not running.
pgrep -x hyprlock >/dev/null && exit 0
if pgrep -x dms >/dev/null && timeout 3 dms ipc call lock lock >/dev/null 2>&1; then
exit 0
fi
command -v hyprlock >/dev/null && exec hyprlock
exit 1