Coder Social home page Coder Social logo

Comments (7)

dominiklohmann avatar dominiklohmann commented on June 22, 2024 1

Didn't know jq. Lovely little tool. Thanks!

from yabai.

koekeishiya avatar koekeishiya commented on June 22, 2024 1

On a related note - has anyone looked into how Spotlight works and if it is possible to create custom searchable text and commands for it? As focusing the proper window has now been resolved using the scripting addition, and with the information provided through the query system in yabai I think it would be handy to create a fuzzy-seach mechanism for focusing windows - this could let you filter windows visible on the current space, current display(?) or all known windows, or whatever.

from yabai.

acmcelwee avatar acmcelwee commented on June 22, 2024

FWIW, jq is a much simpler way to process the existing query outputs than sed. Example:

$ yabai -m query --spaces --space 2 | jq .monitor
1

from yabai.

koekeishiya avatar koekeishiya commented on June 22, 2024

Just for info, I'm going to rename the "monitor" key to "display" to remain consistent with the rest of the program. Not sure how I made that mistake here..

from yabai.

koekeishiya avatar koekeishiya commented on June 22, 2024

Oh and you could also use yabai -m query --displays --space | jq .index to get the display of the active space.

from yabai.

dominiklohmann avatar dominiklohmann commented on June 22, 2024

On a similar note, I noticed that I can do stuff like this with jq:

# get all known open windows in a "app: window title" format
yabai -m query --windows | jq '.[] | .app + ": " + .title'

# get the space count of all displays
yabai -m query --displays | jq '.[].spaces'

Really amazing tool, makes this stuff so easy once you grok the syntax.

from yabai.

dominiklohmann avatar dominiklohmann commented on June 22, 2024

There's Flashlight, which basically is an extension to Spotlight, but I'm not sure if it still works. It's never been running smoothly for me, although I've only tried it after it first came out. I since switched back to Alfredβ€”they recently released v4β€”, which has workflows that are very easy to configure. It's basically Spotlight on steroids and much better in every regard, especially responsiveness.

Edit: Apparently Flashlight is completely broken on macOS Mojave, so scratch that. Alfred is definitely worth the small amount of money it costs, anyways.

from yabai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.