execute multiple actions in a single bind #212
Fuann-Kinoko
started this conversation in
Ideas
Replies: 1 comment
-
I'm not yet sure how/if I want to allow multiple actions per bind. For now you can work around by binding spawing a script that uses |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
usage:
execute multiple actions, just for convenience
for example
Right now niri only takes the first action within bind, but it is easy to extend it to a Vec and do multiple actions sequentially.
niri/src/input.rs
Line 1488 in 2b5eeb6
However I'm not sure what if multiple actions are trigger in screenshot mode, and some actions are valid like
quit
, while others are not. Should the valid actions be executed and others get ignored? Or don't do anything if it contains non-screenshot actions?niri/src/input.rs
Lines 1393 to 1405 in 2b5eeb6
Additionally, I'm not certain if it's necessary to include a "safety check" to prevent potentially conflicting actions.
If this feature is considered acceptable, I'm willing to submit a pull request.
Beta Was this translation helpful? Give feedback.
All reactions