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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user