Files
hyprland-rising/hypr/scripts/prev-window.sh
T
aibrashandClaude Sonnet 5.5 946d93faa7 Initial commit: Hyprland 0.57 rice for Fedora 44
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>
2026-10-30 13:50:27 +05:00

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