Dark minimalist setup for a sysadmin workstation: rounded blur windows with the DMS pink accent, keyboard-driven SSH hub (Mod+S), run-or-raise app binds, Alt+Tab window switching, OCR of screen regions, hotkey cheatsheet, DMS network-editor plugin and the systemd session target for portals. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
13 lines
435 B
Bash
Executable File
13 lines
435 B
Bash
Executable File
#!/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
|
|
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
|