Rundown: sway

Check current keyboard layout on sway

1swaymsg -t get_inputs --raw | jq -r '.[0].xkb_active_layout_name'

Show name of currently selected app in sway

1swaymsg -t get_tree | jq -C '.. | select(.type?) | select(.focused==true)'