trouble activating warpd with utils like hammerspoon
inthegreenwild opened this issue · 1 comments
inthegreenwild commented
I'm trying to make hammerspoon trigger warpd but it never gets activated with hammerspoon's keystroke function. I've not had this issue with any other application that activate on keybinding/hotkey so I'm not sure how to debug this.
hs.hotkey.bind({"cmd", "alt", "ctrl", "shift"}, "W", function()
hs.eventtap.keyStroke({"alt", "cmd"}, "x")
end)
has anyone else had luck activating warpd with things like hammerspoon, applescript, keyboard maestro, etc?
sachamasry commented
I've been able to use Hammerspoon to activate warpd. Here's my configuration; I use s + d to activate normal mode, and x + c to activate hint mode:
"rules": [
{
"description": "(s + d) Warpd normal mode (-> 'Opt + Cmd + C') / Super-Duper mode ",
"manipulators": [
{
"from": {
"simultaneous": [
{
"key_code": "s"
},
{
"key_code": "d"
}
],
"simultaneous_options": {
"detect_key_down_uninterruptedly": true,
"key_down_order": "insensitive",
"key_up_order": "insensitive",
"key_up_when": "any",
"to_after_key_up": [
{
"set_variable": {
"name": "superduper-mode",
"value": 0
}
}
]
}
},
"to": [
{
"set_variable": {
"name": "superduper-mode",
"value": 1
}
}
],
"to_if_alone": [
{
"key_code": "c",
"modifiers": [
"left_option",
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "Warpd hint mode (x + c) -> 'Opt + Cmd + X'",
"manipulators": [
{
"from": {
"simultaneous": [
{
"key_code": "x"
},
{
"key_code": "c"
}
],
"simultaneous_options": {
"detect_key_down_uninterruptedly": true,
"key_down_order": "insensitive",
"key_up_order": "insensitive",
"key_up_when": "any"
}
},
"to": [
{
"key_code": "x",
"modifiers": [
"left_option",
"left_command"
]
}
],
"type": "basic"
}
]
},
Hope it helps you, I rely on it heavily!
…------- Original Message -------
On Thursday, July 20th, 2023 at 6:44 PM, Dylan Cairns ***@***.***> wrote:
I'm trying to make hammerspoon trigger warpd but it never gets activated with hammerspoon's keystroke function. I've not had this issue with any other application that activate on keybinding/hotkey so I'm not sure how to debug this.
hs.hotkey.bind({"cmd", "alt", "ctrl", "shift"}, "W", function()
hs.eventtap.keyStroke({"alt", "cmd"}, "x")
end)
has anyone else had luck activating warpd with things like hammerspoon, applescript, keyboard maestro, etc?
—
Reply to this email directly, [view it on GitHub](#260), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/AGXXEMYFQDWCUOHNAS4VXULXRFOAVANCNFSM6AAAAAA2RWM7SA).
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>