Skip to content

tips-and-tricks.md: update run or raise section #69

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

Merged
merged 1 commit into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/tips-and-tricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,24 @@ if ! wlrctl window focus "$app_id"; then
fi
```

As of labwc version 0.7.2 it is also possible to create a run or raise keybind
with the `ForEach` action.

```
<keybind key="W-F1">
<action name="ForEach">
<query identifier="foot" />
<then>
<action name="Raise" />
<action name="Focus" />
</then>
<none>
<action name="Execute" command="foot" />
</none>
</action>
</keybind>
```

[wlrctl]: https://git.sr.ht/~brocellous/wlrctl
[lswt]: https://sr.ht/~leon_plickat/lswt/
[wlr-foreign-toplevel-management]: https://wayland.app/protocols/wlr-foreign-toplevel-management-unstable-v1
Expand Down
Loading