bard->gemini, bing->copilot

This commit is contained in:
Anton Volnuhin 2024-02-20 06:14:44 +03:00
parent a066b973e1
commit 4649431b95
4 changed files with 511 additions and 342 deletions

View File

@ -25,9 +25,10 @@
:main [ :main [
{:des "pedals default" {:des "pedals default"
:rules [:pedals [:left_pedal :button1] :rules [:pedals [:left_pedal :!Tleft_command]
[:middle_pedal :button3] [:middle_pedal :##left_command]
[:right_pedal :button2] [:right_pedal :ru nil {:afterdown :ru
:afterup :en}]
]} ]}
{:des "Backslash<->Open_Bracket on Advantage2" {:des "Backslash<->Open_Bracket on Advantage2"
@ -65,18 +66,28 @@
{:des "Tab as Hyper(⌘+⌥+^+⇧)" {:des "Tab as Hyper(⌘+⌥+^+⇧)"
:rules [[:tab [:!!left_shift] [:!left_command] {:alone :tab}]]} :rules [[:tab [:!!left_shift] [:!left_command] {:alone :tab}]]}
{:des "Caps+↑, Caps+↓ to Control+Opt+arrow"
:rules [[:##up_arrow :!TOup_arrow :capskey]
[:##down_arrow :!TOdown_arrow :capskey]
[:##1 :!!1 :capskey]
[:##2 :!!2 :capskey]
[:##3 :!!3 :capskey]
[:##left_arrow :!!1 :capskey]
[:##right_arrow :!!2 :capskey]]}
{: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 [:capskey :rules [:capskey
[:t [[:open "/Applications/kitty.app"] {:input :en}] :!kitty] [:t [[:open "/Applications/kitty.app"] {:input :en}] :!kitty]
[:t [:!Ct {:input :en}] :kitty] [:t [:!Ct {:input :en}] :kitty]
[:a [[:open "/Applications/Arc.app"] {:input :en}]] [:a [[:open "/Applications/Arc.app"] {:input :en}]]
[:b [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app"]] [:g [:open "/Users/anton/Applications/Gemini.app"]]
[:g [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bard.app"]] [:m [:open "/Users/anton/Applications/Copilot.app"]]
[:c [:open "/Users/anton/Applications/Brave Browser Apps.localized/Claude.app"]] [:c [:open "/Users/anton/Applications/Claude.app"]]
[:w [:open "/Users/anton/Applications/Setia.wiki.app"]]
[:o [:open "/Applications/Poe.app"]] [:o [:open "/Applications/Poe.app"]]
[:p [:open "/Users/anton/Applications/ChatGPT.app"]] [:p [:open "/Users/anton/Applications/ChatGPT.app"]]
[:v [:open "/Users/anton/Applications/Vikunja.app"]] [:v [:open "/Users/anton/Applications/Vikunja.app"]]
[:spacebar [:open "/Users/anton/Applications/Brave Browser Apps.localized/GPT.app"]]
]} ]}
{:des "⌘W->⌘H in Safari ChatGPT app" {:des "⌘W->⌘H in Safari ChatGPT app"

View File

@ -31,6 +31,7 @@ if status is-interactive
if test -f /opt/homebrew/Caskroom/miniconda/base/etc/fish/conf.d/conda.fish if test -f /opt/homebrew/Caskroom/miniconda/base/etc/fish/conf.d/conda.fish
source /opt/homebrew/Caskroom/miniconda/base/etc/fish/conf.d/conda.fish source /opt/homebrew/Caskroom/miniconda/base/etc/fish/conf.d/conda.fish
conda activate base &
end end
if type -q jump if type -q jump
@ -38,7 +39,6 @@ if status is-interactive
jump shell fish | source jump shell fish | source
end end
end end
# aliases # aliases
alias b "bat -p --pager=never" alias b "bat -p --pager=never"
alias l "ls -la" alias l "ls -la"
@ -57,7 +57,7 @@ function sss
end end
function ss function ss
python3 ~/.config/scripts/ss.py --model gpt-4 $argv python3 ~/.config/scripts/ss.py $argv
end end
function s function s
@ -72,9 +72,10 @@ function winbox
~/dev/winbox/run.sh& ~/dev/winbox/run.sh&
end end
if [ -e /home/anton/.nix-profile/etc/profile.d/nix.fish ]; . /home/anton/.nix-profile/etc/profile.d/nix.fish; end if [ -e /home/anton/.nix-profile/etc/profile.d/nix.fish ]; . /home/anton/.nix-profile/etc/profile.d/nix.fish; end
# The next line updates PATH for the Google Cloud SDK. # 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 if [ -f "/Users/anton/dev/google-cloud-sdk/path.fish.inc" ]
. "/Users/anton/dev/google-cloud-sdk/path.fish.inc";
end
if [ -f '~/.config/op/plugins.sh' ]; source ~/.config/op/plugins.sh; end if [ -f '~/.config/op/plugins.sh' ]; source ~/.config/op/plugins.sh; end

View File

@ -21,7 +21,8 @@
"key_code" : "f18" "key_code" : "f18"
}, },
"to" : [ { "to" : [ {
"pointing_button" : "button1" "key_code" : "left_command",
"modifiers" : [ "left_control" ]
} ], } ],
"conditions" : [ { "conditions" : [ {
"identifiers" : [ { "identifiers" : [ {
@ -36,7 +37,7 @@
"key_code" : "f19" "key_code" : "f19"
}, },
"to" : [ { "to" : [ {
"pointing_button" : "button3" "key_code" : "left_command"
} ], } ],
"conditions" : [ { "conditions" : [ {
"identifiers" : [ { "identifiers" : [ {
@ -47,11 +48,18 @@
} ], } ],
"type" : "basic" "type" : "basic"
}, { }, {
"to_after_key_up" : [ {
"select_input_source" : {
"language" : "en"
}
} ],
"from" : { "from" : {
"key_code" : "f20" "key_code" : "f20"
}, },
"to" : [ { "to" : [ {
"pointing_button" : "button2" "select_input_source" : {
"language" : "ru"
}
} ], } ],
"conditions" : [ { "conditions" : [ {
"identifiers" : [ { "identifiers" : [ {
@ -426,6 +434,128 @@
} ], } ],
"type" : "basic" "type" : "basic"
} ] } ]
}, {
"description" : "Caps+↑, Caps+↓ to Control+Opt+arrow",
"manipulators" : [ {
"from" : {
"key_code" : "up_arrow",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "up_arrow",
"modifiers" : [ "left_control", "left_option" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "down_arrow",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "down_arrow",
"modifiers" : [ "left_control", "left_option" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "1",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "1",
"modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "2",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "2",
"modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "3",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "3",
"modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "left_arrow",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "1",
"modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "right_arrow",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "2",
"modifiers" : [ "left_command", "left_control", "left_option", "left_shift" ]
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"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" : [ {
@ -488,10 +618,10 @@
"type" : "basic" "type" : "basic"
}, { }, {
"from" : { "from" : {
"key_code" : "b" "key_code" : "g"
}, },
"to" : [ { "to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app'" "shell_command" : "open -a '/Users/anton/Applications/Gemini.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "capskey", "name" : "capskey",
@ -501,10 +631,10 @@
"type" : "basic" "type" : "basic"
}, { }, {
"from" : { "from" : {
"key_code" : "g" "key_code" : "m"
}, },
"to" : [ { "to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Bard.app'" "shell_command" : "open -a '/Users/anton/Applications/Copilot.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "capskey", "name" : "capskey",
@ -517,7 +647,20 @@
"key_code" : "c" "key_code" : "c"
}, },
"to" : [ { "to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Claude.app'" "shell_command" : "open -a '/Users/anton/Applications/Claude.app'"
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "w"
},
"to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/Setia.wiki.app'"
} ], } ],
"conditions" : [ { "conditions" : [ {
"name" : "capskey", "name" : "capskey",
@ -564,19 +707,6 @@
"type" : "variable_if" "type" : "variable_if"
} ], } ],
"type" : "basic" "type" : "basic"
}, {
"from" : {
"key_code" : "spacebar"
},
"to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/GPT.app'"
} ],
"conditions" : [ {
"name" : "capskey",
"value" : 1,
"type" : "variable_if"
} ],
"type" : "basic"
} ] } ]
}, { }, {
"description" : "⌘W->⌘H in Safari ChatGPT app", "description" : "⌘W->⌘H in Safari ChatGPT app",