diff --git a/private_dot_config/karabiner.edn b/private_dot_config/karabiner.edn index 9106056..e0691de 100644 --- a/private_dot_config/karabiner.edn +++ b/private_dot_config/karabiner.edn @@ -5,13 +5,17 @@ :held 800 :sim 50}} + :applications {:keykey ["^com\\.chekazuja\\.keykey$"]} + :input-sources {:en {:language "en"} :ru {:language "ru"}} :templates {:open "open -a '%s'"} :main [{:des "Backslash<->open_bracket on advantage2" - :rules [:adv2 [:##open_bracket :backslash :ru] + :rules [:adv2 [:open_bracket :!R5 [:ru :keykey]] + [:##open_bracket :!R8 [:ru :keykey]] + [:##open_bracket :backslash [:ru :!keykey]] [:##backslash :open_bracket :ru]]} {:des "Caps->English, LShift->Russian" diff --git a/private_dot_config/private_fish/config.fish b/private_dot_config/private_fish/config.fish index 8e14c7a..0c827fe 100644 --- a/private_dot_config/private_fish/config.fish +++ b/private_dot_config/private_fish/config.fish @@ -27,11 +27,11 @@ alias l "ls -la" abbr lsn littlesnitch function sss - python ~/.config/scripts/ss.py --model gpt-3.5-turbo $argv + python3 ~/.config/scripts/ss.py --model gpt-3.5-turbo $argv end function ss - python ~/.config/scripts/ss.py $argv + python3 ~/.config/scripts/ss.py $argv end function s diff --git a/private_dot_config/private_karabiner/private_karabiner.json b/private_dot_config/private_karabiner/private_karabiner.json index 431db9c..7d3a898 100644 --- a/private_dot_config/private_karabiner/private_karabiner.json +++ b/private_dot_config/private_karabiner/private_karabiner.json @@ -260,6 +260,57 @@ "rules" : [ { "description" : "Backslash<->open_bracket on advantage2", "manipulators" : [ { + "from" : { + "key_code" : "open_bracket" + }, + "to" : [ { + "key_code" : "5", + "modifiers" : [ "right_shift" ] + } ], + "conditions" : [ { + "input_sources" : [ { + "language" : "ru" + } ], + "type" : "input_source_if" + }, { + "type" : "frontmost_application_if", + "bundle_identifiers" : [ "^com\\.chekazuja\\.keykey$" ] + }, { + "identifiers" : [ { + "vendor_id" : 10730, + "product_id" : 258 + } ], + "type" : "device_if" + } ], + "type" : "basic" + }, { + "from" : { + "key_code" : "open_bracket", + "modifiers" : { + "optional" : [ "any" ] + } + }, + "to" : [ { + "key_code" : "8", + "modifiers" : [ "right_shift" ] + } ], + "conditions" : [ { + "input_sources" : [ { + "language" : "ru" + } ], + "type" : "input_source_if" + }, { + "type" : "frontmost_application_if", + "bundle_identifiers" : [ "^com\\.chekazuja\\.keykey$" ] + }, { + "identifiers" : [ { + "vendor_id" : 10730, + "product_id" : 258 + } ], + "type" : "device_if" + } ], + "type" : "basic" + }, { "from" : { "key_code" : "open_bracket", "modifiers" : { @@ -274,6 +325,9 @@ "language" : "ru" } ], "type" : "input_source_if" + }, { + "type" : "frontmost_application_unless", + "bundle_identifiers" : [ "^com\\.chekazuja\\.keykey$" ] }, { "identifiers" : [ { "vendor_id" : 10730,