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>
9 lines
467 B
Bash
Executable File
9 lines
467 B
Bash
Executable File
#!/bin/bash
|
|
# Alt+Tab: jump to the previously focused window (press again to jump back). RAISE_DRY=1 only prints.
|
|
target=$(hyprctl clients -j | jq -r '
|
|
[.[] | select(.workspace.name | startswith("special") | not) | select(.focusHistoryID > 0)]
|
|
| sort_by(.focusHistoryID) | .[0].address // empty')
|
|
[ -z "$target" ] && exit 0
|
|
[ -n "$RAISE_DRY" ] && { echo "focus: $target"; exit 0; }
|
|
hyprctl dispatch "hl.dsp.focus({ window = \"address:$target\" })" >/dev/null
|