Compare commits

..

1 Commits

Author SHA1 Message Date
Marcin Woźniak
8f36f760f4 Added the install_meraki_ansible 2022-11-24 13:57:23 +01:00
3 changed files with 992 additions and 961 deletions

View File

@ -23,8 +23,12 @@
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -38,8 +42,12 @@
"from": { "from": {
"key_code": "j", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -53,8 +61,12 @@
"from": { "from": {
"key_code": "k", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -68,8 +80,12 @@
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": ["right_command"], "mandatory": [
"optional": ["any"] "right_command"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -86,10 +102,14 @@
"manipulators": [ "manipulators": [
{ {
"from": { "from": {
"key_code": "j", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": ["left_control", "left_shift"], "mandatory": [
"optional": ["any"] "fn"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -103,10 +123,14 @@
}, },
{ {
"from": { "from": {
"key_code": "k", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": ["left_control", "left_shift"], "mandatory": [
"optional": ["any"] "fn"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -122,8 +146,12 @@
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
"mandatory": ["fn"], "mandatory": [
"optional": ["any"] "fn"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -139,8 +167,12 @@
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": ["fn"], "mandatory": [
"optional": ["any"] "fn"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -156,8 +188,13 @@
"from": { "from": {
"key_code": "u", "key_code": "u",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -171,8 +208,13 @@
"from": { "from": {
"key_code": "o", "key_code": "o",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -186,8 +228,13 @@
"from": { "from": {
"key_code": "h", "key_code": "h",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -203,8 +250,13 @@
"from": { "from": {
"key_code": "j", "key_code": "j",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -220,8 +272,13 @@
"from": { "from": {
"key_code": "k", "key_code": "k",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -237,8 +294,13 @@
"from": { "from": {
"key_code": "l", "key_code": "l",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -254,8 +316,13 @@
"from": { "from": {
"key_code": "q", "key_code": "q",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -269,8 +336,13 @@
"from": { "from": {
"key_code": "e", "key_code": "e",
"modifiers": { "modifiers": {
"mandatory": ["left_option", "left_shift"], "mandatory": [
"optional": ["any"] "left_control",
"left_shift"
],
"optional": [
"any"
]
} }
}, },
"to": [ "to": [
@ -609,16 +681,6 @@
"key_code": "right_command" "key_code": "right_command"
} }
] ]
},
{
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
]
} }
], ],
"treat_as_built_in_keyboard": false "treat_as_built_in_keyboard": false
@ -690,28 +752,7 @@
}, },
"ignore": false, "ignore": false,
"manipulate_caps_lock_led": true, "manipulate_caps_lock_led": true,
"simple_modifications": [ "simple_modifications": [],
{
"from": {
"key_code": "right_command"
},
"to": [
{
"key_code": "right_option"
}
]
},
{
"from": {
"key_code": "right_option"
},
"to": [
{
"key_code": "right_command"
}
]
}
],
"treat_as_built_in_keyboard": false "treat_as_built_in_keyboard": false
}, },
{ {
@ -754,16 +795,6 @@
"ignore": false, "ignore": false,
"manipulate_caps_lock_led": true, "manipulate_caps_lock_led": true,
"simple_modifications": [ "simple_modifications": [
{
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_option"
}
]
},
{ {
"from": { "from": {
"key_code": "left_option" "key_code": "left_option"
@ -773,6 +804,16 @@
"key_code": "right_command" "key_code": "right_command"
} }
] ]
},
{
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_option"
}
]
} }
], ],
"treat_as_built_in_keyboard": false "treat_as_built_in_keyboard": false
@ -926,16 +967,6 @@
} }
] ]
}, },
{
"from": {
"key_code": "escape"
},
"to": [
{
"key_code": "caps_lock"
}
]
},
{ {
"from": { "from": {
"key_code": "left_command" "key_code": "left_command"

View File

@ -142,8 +142,7 @@ call plug#begin('~/.config/nvim/plugged')
Plug 'sbdchd/neoformat' Plug 'sbdchd/neoformat'
Plug 'hrsh7th/cmp-vsnip' Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip' Plug 'hrsh7th/nvim-vsnip'
Plug 'hrsh7th/vim-vsnip-integ'
" Telescope " Telescope
Plug 'nvim-lua/plenary.nvim' Plug 'nvim-lua/plenary.nvim'

View File

@ -20,10 +20,6 @@ function update_pip() {
python3 -m pip install --upgrade pip --user python3 -m pip install --upgrade pip --user
} }
function install_neovim_module_for_python() {
pip3 install neovim --pre --user --force
}
function install_pyright() { function install_pyright() {
# Install pyright # Install pyright
sudo npm -g i pyright --force sudo npm -g i pyright --force
@ -57,8 +53,7 @@ function install_gopls() {
function install_black() { function install_black() {
# Install black # Install black
pip install black --pre --user --force pip3 install black --user --force
pip3 install black --pre --user --force
} }
function install_ansible() { function install_ansible() {
@ -71,6 +66,11 @@ function install_ansible-language-server() {
sudo npm -g i yaml-language-server --force sudo npm -g i yaml-language-server --force
} }
function install_meraki_ansible() {
ansible-galaxy collection install cisco.meraki --force
pip3 install meraki --user --force
}
function main() { function main() {
command_start update_pip command_start update_pip
command_start install_pyright command_start install_pyright
@ -82,6 +82,7 @@ function main() {
command_start install_gopls command_start install_gopls
command_start install_black command_start install_black
command_start install_ansible command_start install_ansible
command_start install_meraki_ansible
} }
main main