Created
March 6, 2019 16:43
-
-
Save jplatte/21e45bf90b77dd8a35084bafec167f79 to your computer and use it in GitHub Desktop.
sway: get focused output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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