advantage2 keys switch

This commit is contained in:
Anton Volnuhin 2023-05-10 02:51:18 +03:00
parent 4b93f89834
commit 5c7b6bd183
4 changed files with 64 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{
{ :devices {:adv2 [{:vendor_id 10730 :product_id 258}]}
:profiles {:Default {:default true
:alone 200
:delay 500
@ -10,11 +10,17 @@
:templates {:open "open -a '%s'"}
:main [{:des "Caps->English, LShift->Russian"
:main [{:des "Backslash<->open_bracket on advantage2"
:rules [:adv2 [:##open_bracket :backslash :ru]
[:##backslash :open_bracket :ru]]}
{:des "Caps->English, LShift->Russian"
:rules [[:##left_shift :left_shift nil {:alone {:input :ru}}]
[:##caps_lock ["hyper" 1] nil {:alone {:input :en}
:held :caps_lock
:afterup ["hyper" 0]}]]}
{: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"]]
[:b [:open "/Users/anton/Applications/Brave Browser Apps.localized/Bing AI.app"]]
@ -28,6 +34,7 @@
{:des "RShift->comma"
:rules [[:##right_shift :right_shift :ru {:alone :!R6}]
[:##right_shift :right_shift :en {:alone :comma}]]}]
}

View File

@ -26,6 +26,7 @@ require("lazy").setup({
{ "lukas-reineke/indent-blankline.nvim" },
{ "mbbill/undotree" },
{ "phaazon/hop.nvim" },
{ "edluffy/hologram.nvim" },
{ "echasnovski/mini.nvim", version = "*" },
{
"williamboman/mason.nvim",
@ -67,6 +68,10 @@ require("mini.bracketed").setup()
require("mini.surround").setup()
require("mini.completion").setup()
require('hologram').setup{
auto_display = true -- WIP automatic markdown image display, may be prone to breaking
}
require("mason").setup({
ui = {
icons = {

View File

@ -24,7 +24,7 @@ end
alias b "bat -p --pager=never"
alias l "ls -la"
abbr lsn littlesnitch
function ss

View File

@ -258,6 +258,55 @@
"basic.to_if_held_down_threshold_milliseconds" : 800
},
"rules" : [ {
"description" : "Backslash<->open_bracket on advantage2",
"manipulators" : [ {
"from" : {
"key_code" : "open_bracket",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "backslash"
} ],
"conditions" : [ {
"input_sources" : [ {
"language" : "ru"
} ],
"type" : "input_source_if"
}, {
"identifiers" : [ {
"vendor_id" : 10730,
"product_id" : 258
} ],
"type" : "device_if"
} ],
"type" : "basic"
}, {
"from" : {
"key_code" : "backslash",
"modifiers" : {
"optional" : [ "any" ]
}
},
"to" : [ {
"key_code" : "open_bracket"
} ],
"conditions" : [ {
"input_sources" : [ {
"language" : "ru"
} ],
"type" : "input_source_if"
}, {
"identifiers" : [ {
"vendor_id" : 10730,
"product_id" : 258
} ],
"type" : "device_if"
} ],
"type" : "basic"
} ]
}, {
"description" : "Caps->English, LShift->Russian",
"manipulators" : [ {
"to_if_alone" : [ {