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

Add trigger information to criteria #5662

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

danieldg
Copy link
Contributor

@danieldg danieldg commented Sep 4, 2020

Note: this is a re-post of #5609 because github closed that and apparently does not support reopening it (at least with only the one commit that I intended it to contain).

This allows writing commands like "for_window [trigger="map",workspace="1"]"
that only execute if the criteria matches during the initial mapping of the
window.

Currently implemented trigger names:

  • command: explicit invocation by a command, not very useful
  • map: initial window creation
  • mark, title, app_id, class, window_role, window_type:
    the given property changed

This allows writing commands like "for_window [trigger="map",workspace="1"]"
that only execute if the criteria matches during the initial mapping of the
window.

Currently implemented trigger names:
 - command: explicit invocation by a command, not very useful
 - map: initial window creation
 - mark, title, app_id, class, window_role, window_type:
   the given property changed
@emersion emersion added the enhancement New feature or incremental improvement label Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

Successfully merging this pull request may close these issues.

2 participants