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>
9 lines
308 B
Bash
Executable File
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
|