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 [
{:des "pedals default"
:rules [:pedals [:left_pedal :button1]
[:middle_pedal :button3]
[:right_pedal :button2]
:rules [:pedals [:left_pedal :!Tleft_command]
[:middle_pedal :##left_command]
[:right_pedal :ru nil {:afterdown :ru
:afterup :en}]
]}
{:des "Backslash<->Open_Bracket on Advantage2"
@ -65,18 +66,28 @@
{:des "Tab as Hyper(⌘+⌥+^+⇧)"
: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"
:rules [:capskey
[:t [[:open "/Applications/kitty.app"] {:input :en}] :!kitty]
[:t [:!Ct {:input :en}] :kitty]
[:a [[:open "/Applications/Arc.app"] {:input :en}]]
[:b [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app"]]
[:g [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bard.app"]]
[:c [:open "/Users/anton/Applications/Brave Browser Apps.localized/Claude.app"]]
[:g [:open "/Users/anton/Applications/Gemini.app"]]
[:m [:open "/Users/anton/Applications/Copilot.app"]]
[:c [:open "/Users/anton/Applications/Claude.app"]]
[:w [:open "/Users/anton/Applications/Setia.wiki.app"]]
[:o [:open "/Applications/Poe.app"]]
[:p [:open "/Users/anton/Applications/ChatGPT.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"

View File

@ -31,6 +31,7 @@ if status is-interactive
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
conda activate base &
end
if type -q jump
@ -38,7 +39,6 @@ if status is-interactive
jump shell fish | source
end
end
# aliases
alias b "bat -p --pager=never"
alias l "ls -la"
@ -57,7 +57,7 @@ function sss
end
function ss
python3 ~/.config/scripts/ss.py --model gpt-4 $argv
python3 ~/.config/scripts/ss.py $argv
end
function s
@ -72,9 +72,10 @@ function winbox
~/dev/winbox/run.sh&
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.
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

View File

@ -21,7 +21,8 @@
"key_code" : "f18"
},
"to" : [ {
"pointing_button" : "button1"
"key_code" : "left_command",
"modifiers" : [ "left_control" ]
} ],
"conditions" : [ {
"identifiers" : [ {
@ -36,7 +37,7 @@
"key_code" : "f19"
},
"to" : [ {
"pointing_button" : "button3"
"key_code" : "left_command"
} ],
"conditions" : [ {
"identifiers" : [ {
@ -47,11 +48,18 @@
} ],
"type" : "basic"
}, {
"to_after_key_up" : [ {
"select_input_source" : {
"language" : "en"
}
} ],
"from" : {
"key_code" : "f20"
},
"to" : [ {
"pointing_button" : "button2"
"select_input_source" : {
"language" : "ru"
}
} ],
"conditions" : [ {
"identifiers" : [ {
@ -426,6 +434,128 @@
} ],
"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",
"manipulators" : [ {
@ -488,10 +618,10 @@
"type" : "basic"
}, {
"from" : {
"key_code" : "b"
"key_code" : "g"
},
"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" : [ {
"name" : "capskey",
@ -501,10 +631,10 @@
"type" : "basic"
}, {
"from" : {
"key_code" : "g"
"key_code" : "m"
},
"to" : [ {
"shell_command" : "open -a '/Users/anton/Applications/Brave Browser Apps.localized/Bard.app'"
"shell_command" : "open -a '/Users/anton/Applications/Copilot.app'"
} ],
"conditions" : [ {
"name" : "capskey",
@ -517,7 +647,20 @@
"key_code" : "c"
},
"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" : [ {
"name" : "capskey",
@ -564,19 +707,6 @@
"type" : "variable_if"
} ],
"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",