[terminal.sh] Simplify expression

This commit is contained in:
Midgard 2024-12-18 20:02:22 +01:00
parent 936ab71626
commit 0c5e2dce04
Signed by untrusted user who does not match committer: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -17,7 +17,7 @@ fi
focused_window_title() {
if [ -n "${WAYLAND_DISPLAY:-}" ]; then
lswt -j | jq -r '.toplevels | map(select(.activated?))[0] | .title'
lswt -j | jq -r '.toplevels | map(select(.activated?))[0].title'
else
xtitle
fi