Skip to content

Instantly share code, notes, and snippets.

@jplatte
Created March 6, 2019 16:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jplatte/21e45bf90b77dd8a35084bafec167f79 to your computer and use it in GitHub Desktop.
Save jplatte/21e45bf90b77dd8a35084bafec167f79 to your computer and use it in GitHub Desktop.
sway: get focused output
swaymsg -t get_tree | jq -r '.nodes[] | select([recurse(.nodes[]?, .floating_nodes[]?) | .focused] | any) | .name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment