openai autohide/show

This commit is contained in:
Anton Volnuhin 2024-02-26 04:14:44 +03:00
parent 4649431b95
commit aa9e9f5483
2 changed files with 42 additions and 5 deletions

View File

@ -9,7 +9,8 @@
:applications {:keykey ["^com\\.chekazuja\\.keykey$"] :applications {:keykey ["^com\\.chekazuja\\.keykey$"]
:kitty ["^net\\.kovidgoyal\\.kitty$"] :kitty ["^net\\.kovidgoyal\\.kitty$"]
:webapp ["^com\\.apple\\.Safari\\.WebApp\\..+$"]} :webapp ["^com\\.apple\\.Safari\\.WebApp\\..+$"]
:openai ["^com\\.Unite\\.openai$"]}
:input-sources {:en {:language "en"} :input-sources {:en {:language "en"}
:ru {:language "ru"}} :ru {:language "ru"}}
@ -85,13 +86,16 @@
[:m [:open "/Users/anton/Applications/Copilot.app"]] [:m [:open "/Users/anton/Applications/Copilot.app"]]
[:c [:open "/Users/anton/Applications/Claude.app"]] [:c [:open "/Users/anton/Applications/Claude.app"]]
[:w [:open "/Users/anton/Applications/Setia.wiki.app"]] [:w [:open "/Users/anton/Applications/Setia.wiki.app"]]
[:o [:open "/Applications/Poe.app"]] [:o [:open "/Applications/openai.app"] :!openai]
[:o :!Ch :openai]
[:p [:open "/Users/anton/Applications/ChatGPT.app"]] [:p [:open "/Users/anton/Applications/ChatGPT.app"]]
[:i [:open "/Users/anton/Applications/Perplexity.app"]]
[:v [:open "/Users/anton/Applications/Vikunja.app"]] [:v [:open "/Users/anton/Applications/Vikunja.app"]]
]} ]}
{:des "⌘W->⌘H in Safari ChatGPT app" {:des "⌘W->⌘H in Safari ChatGPT app"
:rules [:webapp [:!Cw :!Ch]]} :rules [:webapp [:!Cw :!Ch]]}
{:des "Ropt->Comma" {:des "Ropt->Comma"
:rules [[:##right_option :right_shift :ru {:alone :!R6}] :rules [[:##right_option :right_shift :ru {:alone :!R6}]

View File

@ -673,7 +673,40 @@
"key_code" : "o" "key_code" : "o"
}, },
"to" : [ { "to" : [ {
"shell_command" : "open -a '/Applications/Poe.app'" "shell_command" : "open -a '/Applications/openai.app'"
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
}, {
"type" : "frontmost_application_unless",
"bundle_identifiers" : [ "^com\\.Unite\\.openai$" ]
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "o"
},
"to" : [ {
"key_code" : "h",
"modifiers" : [ "left_command" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
}, {
"type" : "frontmost_application_if",
"bundle_identifiers" : [ "^com\\.Unite\\.openai$" ]
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "p"
},
"to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/ChatGPT.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "capskey", "name" : "capskey",
@ -683,10 +716,10 @@
"type" : "basic" "type" : "basic"
}, { }, {
"from" : { "from" : {
"key_code" : "p" "key_code" : "i"
}, },
"to" : [ { "to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/ChatGPT.app'" "shell_command" : "open -a '/Users/anton/Applications/Perplexity.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "capskey", "name" : "capskey",