Skip to content
Discussion options

You must be logged in to vote

OK, I got it working 🥳

rule("apps").manipulators([
	withModifier("right_command")([
		map("s")
			.toVar("app_layer", "s")
			.toAfterKeyUp(toSetVar("app_layer", 0))
			.toIfAlone(toApp("Slack")),
		map("p")
			.toVar("app_layer", "p")
			.toAfterKeyUp(toSetVar("app_layer", 0))
			.toIfAlone(toApp("1Password")),
		withCondition(ifVar("app_layer", "s"))([map("i").to(toApp("Signal"))]),
		withCondition(ifVar("app_layer", "p"))([map("o").to(toApp("Postman"))]),
	]),
])

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chodorowicz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant