updates to tiling

This commit is contained in:
Sean Kovacs 2025-12-13 12:09:17 -05:00
commit 53973bbfb1
Signed by: sckova
GPG key ID: 00F325187C68651A
8 changed files with 122 additions and 13 deletions

View file

@ -0,0 +1,25 @@
#!/usr/bin/env bash
last=""
while :; do
current=$(
niri msg focused-window | awk -F'"' '
/App ID:/ { app = $2 }
/Title:/ { title = $2 }
END {
if (app && title) {
print app " - " title
}
}
'
)
if [[ -n "$current" && "$current" != "$last" ]]; then
printf '%s\n' "$current"
last="$current"
fi
sleep 0.01
done