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>
This commit is contained in:
2026-10-30 14:28:06 +05:00
co-authored by Claude Sonnet 5.5
parent af3b12a131
commit 211b3e626c
3 changed files with 9 additions and 13 deletions
+4 -8
View File
@@ -1,12 +1,8 @@
#!/bin/sh
# Lock with DankMaterialShell (matches the shell theme). Fall back to swaylock-effects / swaylock
# when DMS is not running or the IPC call fails.
pgrep -x swaylock >/dev/null && exit 0
# 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
fx=$HOME/.local/bin/swaylock-effects
if [ -x "$fx" ]; then
exec "$fx" -f -C "$HOME/.config/swaylock/config-effects"
fi
exec swaylock -f
command -v hyprlock >/dev/null && exec hyprlock
exit 1