Files
sway-new-config/home_dotfiles/.config/sway/get-focused-window.sh
2025-12-09 21:23:12 +02:00

6 lines
121 B
Bash
Executable File

#!/bin/bash
FOCUSED=$(swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .name')
echo "$FOCUSED"