hyper preparation

This commit is contained in:
Anton Volnuhin 2023-05-11 04:29:03 +03:00
parent 0b64a0cfbf
commit 48f9559849
3 changed files with 49 additions and 25 deletions

View File

@ -10,26 +10,27 @@
:templates {:open "open -a '%s'"} :templates {:open "open -a '%s'"}
:main [{:des "Backslash<->Open_Bracket on Advantage2" :main [{:des "Backslash<->open_bracket on advantage2"
:rules [:adv2 [:##open_bracket :backslash :ru] :rules [:adv2 [:##open_bracket :backslash :ru]
[:#Sbackslash :open_bracket :ru]]} [:##backslash :open_bracket :ru]]}
{:des "Caps->English, LShift->Russian" {:des "Caps->English, LShift->Russian"
:rules [[:##left_shift :left_shift nil {:alone {:input :ru}}] :rules [[:##left_shift :left_shift nil {:alone {:input :ru}}]
[:##caps_lock ["hyper" 1] nil {:alone {:input :en} [:##caps_lock ["capskey" 1] nil {:alone {:input :en}
:held :caps_lock :held :caps_lock
:afterup ["hyper" 0]}]]} :afterup ["capskey" 0]}]]}
{:des "Tab as Hyper"
:rules [[:tab [:command :option :shift :control] nil {:alone :tab}]]}
{:des "Caps+T to start Kitty, Caps+B->Bing, Caps+G->Bard, Caps+O->Poe, Caps+P->ChatGPT4, Caps+␣->AllGPT" {:des "Caps+T to start Kitty, Caps+B->Bing, Caps+G->Bard, Caps+O->Poe, Caps+P->ChatGPT4, Caps+␣->AllGPT"
:rules [:hyper [:t [:open "/Applications/kitty.app"]] :rules [:capskey [:t [:open "/Applications/kitty.app"]]
[:b [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app"]] [:b [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app"]]
[:g [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bard.app"]] [:g [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bard.app"]]
[:o [:open "/Users/anton/Applications/Brave Browser Apps.localized/Poe.app"]] [:o [:open "/Users/anton/Applications/Brave Browser Apps.localized/Poe.app"]]
[:p [:open "/Users/anton/Applications/Brave Browser Apps.localized/ChatGPT4.app"]] [:p [:open "/Users/anton/Applications/Brave Browser Apps.localized/ChatGPT4.app"]]
[:v [:open "/Users/anton/Applications/Brave Browser Apps.localized/Vikunja.app"]] [:v [:open "/Users/anton/Applications/Brave Browser Apps.localized/Vikunja.app"]]
[:spacebar [:open "/Users/anton/Applications/Brave Browser Apps.localized/GPT.app"]] [:spacebar [:open "/Users/anton/Applications/Brave Browser Apps.localized/GPT.app"]]
]} ]}
{:des "RShift->comma" {:des "RShift->comma"
:rules [[:##right_shift :right_shift :ru {:alone :!R6}] :rules [[:##right_shift :right_shift :ru {:alone :!R6}]

View File

@ -38,3 +38,6 @@ end
function icat function icat
kitty +kitten icat --align=left $argv kitty +kitten icat --align=left $argv
end end
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/anton/dev/google-cloud-sdk/path.fish.inc' ]; . '/Users/anton/dev/google-cloud-sdk/path.fish.inc'; end

View File

@ -258,7 +258,7 @@
"basic.to_if_held_down_threshold_milliseconds" : 800 "basic.to_if_held_down_threshold_milliseconds" : 800
}, },
"rules" : [ { "rules" : [ {
"description" : "Backslash<->Open_Bracket on Advantage2", "description" : "Backslash<->open_bracket on advantage2",
"manipulators" : [ { "manipulators" : [ {
"from" : { "from" : {
"key_code" : "open_bracket", "key_code" : "open_bracket",
@ -286,7 +286,7 @@
"from" : { "from" : {
"key_code" : "backslash", "key_code" : "backslash",
"modifiers" : { "modifiers" : {
"optional" : [ "left_shift" ] "optional" : [ "any" ]
} }
}, },
"to" : [ { "to" : [ {
@ -335,7 +335,7 @@
} ], } ],
"to_after_key_up" : [ { "to_after_key_up" : [ {
"set_variable" : { "set_variable" : {
"name" : "hyper", "name" : "capskey",
"value" : 0 "value" : 0
} }
} ], } ],
@ -347,12 +347,32 @@
}, },
"to" : [ { "to" : [ {
"set_variable" : { "set_variable" : {
"name" : "hyper", "name" : "capskey",
"value" : 1 "value" : 1
} }
} ], } ],
"type" : "basic" "type" : "basic"
} ] } ]
}, {
"description" : "Tab as Hyper",
"manipulators" : [ {
"to_if_alone" : [ {
"key_code" : "tab"
} ],
"from" : {
"key_code" : "tab"
},
"to" : [ {
"key_code" : "command"
}, {
"key_code" : "option"
}, {
"key_code" : "shift"
}, {
"key_code" : "control"
} ],
"type" : "basic"
} ]
}, { }, {
"description" : "Caps+T to start Kitty, Caps+B->Bing, Caps+G->Bard, Caps+O->Poe, Caps+P->ChatGPT4, Caps+␣->AllGPT", "description" : "Caps+T to start Kitty, Caps+B->Bing, Caps+G->Bard, Caps+O->Poe, Caps+P->ChatGPT4, Caps+␣->AllGPT",
"manipulators" : [ { "manipulators" : [ {
@ -363,7 +383,7 @@
"shell_command" : "open -a '/Applications/kitty.app'" "shell_command" : "open -a '/Applications/kitty.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "hyper", "name" : "capskey",
"value" : 1, "value" : 1,
"type" : "variable_if" "type" : "variable_if"
} ], } ],
@ -376,7 +396,7 @@
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app'" "shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "hyper", "name" : "capskey",
"value" : 1, "value" : 1,
"type" : "variable_if" "type" : "variable_if"
} ], } ],
@ -389,7 +409,7 @@
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Bard.app'" "shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Bard.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "hyper", "name" : "capskey",
"value" : 1, "value" : 1,
"type" : "variable_if" "type" : "variable_if"
} ], } ],
@ -402,7 +422,7 @@
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Poe.app'" "shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Poe.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "hyper", "name" : "capskey",
"value" : 1, "value" : 1,
"type" : "variable_if" "type" : "variable_if"
} ], } ],
@ -415,7 +435,7 @@
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/ChatGPT4.app'" "shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/ChatGPT4.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "hyper", "name" : "capskey",
"value" : 1, "value" : 1,
"type" : "variable_if" "type" : "variable_if"
} ], } ],
@ -428,7 +448,7 @@
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Vikunja.app'" "shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Vikunja.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "hyper", "name" : "capskey",
"value" : 1, "value" : 1,
"type" : "variable_if" "type" : "variable_if"
} ], } ],
@ -441,7 +461,7 @@
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/GPT.app'" "shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/GPT.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "hyper", "name" : "capskey",
"value" : 1, "value" : 1,
"type" : "variable_if" "type" : "variable_if"
} ], } ],