Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Array for on-window-detected app ids #460

Closed
3 tasks done
frankfriberg opened this issue Aug 27, 2024 · 2 comments
Closed
3 tasks done

Feature request: Array for on-window-detected app ids #460

frankfriberg opened this issue Aug 27, 2024 · 2 comments

Comments

@frankfriberg
Copy link

First of all, love this app! 🫶

With yabai as I used before this, I manually handled what was handled, but aerospace has a better way of automatically handling so I don't have to add as much config.
But I have to repeat on-window-detected config to make certain apps float as I don't need these fullscreen.

My request is for the if.app-id to be able to get an array and it will do the run for all those app-ids like this:

[[on-window-detected]]
if.app-id = ["com.1password.1password", "ru.keepcoder.Telegram", "com.apple.iCal"]

instead of:

[[on-window-detected]]
if.app-id = "com.1password.1password"
run = "layout floating"

[[on-window-detected]]
if.app-id = "ru.keepcoder.Telegram"
run = "layout floating"

[[on-window-detected]]
if.app-id = "com.apple.iCal"
run = "layout floating"

ℹ️ I have not thought about any scenario that this might break when running for multiple apps, I only use this for floating the apps 😄

Checklist

  • I've searched for duplicates. My search queries were (please don't forget to search in closed issues too):
    • array
  • I've read the documentation
  • I've searched in the documentation. My search queries were:
  • array
aerospace CLI client version: 0.14.2-Beta 0cb8dbdfc5ee73b8cbc200f175f467ebead55201
AeroSpace.app server version: 0.14.2-Beta 0cb8dbdfc5ee73b8cbc200f175f467ebead55201
@nikitabobko
Copy link
Owner

The current on-window-detected TOML syntax is ugly, verbose and non-extensible. It will be replaced with embedded shell-like language #278

In the embedded shell-like language you will be able to use logical or || #278 (comment)

@nikitabobko
Copy link
Owner

Duplicate of #375

@nikitabobko nikitabobko marked this as a duplicate of #375 Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants