#!/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