Comments (7)
Didn't know jq
. Lovely little tool. Thanks!
from yabai.
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.
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.
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.
Oh and you could also use yabai -m query --displays --space | jq .index
to get the display of the active space.
from yabai.
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.
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)
- Weird config issue/behaviour. HOT 2
- New app instances open on the wrong display HOT 2
- Option-> Force Quit issue HOT 3
- Invalid vscode switching to bsp layout HOT 1
- SIP disabled, Scripting addition added, Still cannot focus space HOT 1
- Blurring of transparent windows when trying to add window border
- Sticky without Float?
- Yabai won't load config file (~/.config/yabai/yabairc) HOT 5
- In Chrome Doesn't show the search box when use cmd +f , when I use yabai. HOT 3
- I want to use different instances of the same app(by just copy the app and get XXX copy.app) But It seems that the yabai still recoginize them as the same app? How I can I use some skills to help my need ?
- Issue with autofocus with PIP HOT 1
- Workspaces change order on application window updates. HOT 1
- How to reset window_border_radius to automatic.
- Windows randomly shifting or swapping spaces HOT 4
- yabai -m query --windows did not list all windows
- Yabai cannot focus active windows
- `yabai -m query --spaces` did not list all windows after `display_removed` triggered HOT 2
- port for vision pro headset HOT 1
- Automatic load of `yabai --load-sa` HOT 5
- Windows appear blurred-out HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yabai.