Compare commits
7 Commits
29256654e3
...
9662367dad
Author | SHA1 | Date | |
---|---|---|---|
9662367dad | |||
7d0d20779d | |||
6080ab660f | |||
5b83c10cfb | |||
5a295b2a6d | |||
ec162b3db5 | |||
96b3c7c0a2 |
206
.config/karabiner/mouse-keys-ambidextrous-yorune.json
Normal file
206
.config/karabiner/mouse-keys-ambidextrous-yorune.json
Normal file
@ -0,0 +1,206 @@
|
||||
{
|
||||
"title": "Mouse keys ambidextrous - yorune",
|
||||
"rules": [
|
||||
{
|
||||
"description": "Mouse keys Ambidextrous",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"vertical_wheel": -64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"vertical_wheel": 64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"horizontal_wheel": 64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"mandatory": ["fn"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"horizontal_wheel": -64
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "u",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button1"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "o",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button2"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "h",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"x": -1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "j",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"y": 1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "k",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"y": -1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "l",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"mouse_key": {
|
||||
"x": 1018
|
||||
}
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "q",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button1"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "e",
|
||||
"modifiers": {
|
||||
"mandatory": ["left_control", "left_shift"],
|
||||
"optional": ["any"]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"pointing_button": "button2"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@ -332,8 +332,6 @@ let g:neoformat_python_black = {
|
||||
\ }
|
||||
let g:neoformat_enabled_python = ['black']
|
||||
|
||||
" Ebuild
|
||||
let g:shfmt_opt="-ci"
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
@ -428,6 +426,12 @@ nmap <C-_> <Plug>CommentaryLine
|
||||
vnoremap <Tab> >
|
||||
vnoremap <S-Tab> <
|
||||
|
||||
" Better word
|
||||
nmap yw vey
|
||||
|
||||
" Select all text
|
||||
nmap <C-a> gg<S-v>G
|
||||
|
||||
" Telescope
|
||||
nmap <Leader>e <cmd>Telescope buffers<cr>
|
||||
nmap <Leader>w <cmd>Telescope find_files<cr>
|
||||
@ -495,6 +499,9 @@ inoremap <C-t> <Esc>:tabnew<CR>
|
||||
nnoremap J }
|
||||
nnoremap K {
|
||||
|
||||
vnoremap J }
|
||||
vnoremap K {
|
||||
|
||||
" Copy into system
|
||||
noremap <Leader>y "*y
|
||||
noremap <Leader>p "*p
|
||||
@ -537,6 +544,7 @@ endif
|
||||
|
||||
let g:shfmt_extra_args = '-i 4 -ci -sr -s'
|
||||
let g:shfmt_fmt_on_save = 1
|
||||
let g:shfmt_opt="-ci"
|
||||
|
||||
" Python
|
||||
autocmd BufRead,BufNewFile *.py set textwidth=0
|
||||
|
44
.local/bin/get-meraki-network-list
Executable file
44
.local/bin/get-meraki-network-list
Executable file
@ -0,0 +1,44 @@
|
||||
#!/bin/bash
|
||||
|
||||
################################################################################
|
||||
#
|
||||
# Marcin Wozniak
|
||||
# y0rune@aol.com
|
||||
#
|
||||
# That script is for easier getting a Meraki network list
|
||||
#
|
||||
# shellcheck disable=1091,2048
|
||||
################################################################################
|
||||
|
||||
set -e
|
||||
|
||||
function timestamp() {
|
||||
echo "[+] $(date +'%F %T') [INFO] $*"
|
||||
}
|
||||
|
||||
function err() {
|
||||
echo "[-] $(date +'%F %T') [ERROR] $*" >&2
|
||||
}
|
||||
|
||||
function command_start() {
|
||||
timestamp "Command $* has been started."
|
||||
if ! $*; then
|
||||
err "Command $* went wrong."
|
||||
exit
|
||||
fi
|
||||
timestamp "Command $* has been ended."
|
||||
}
|
||||
|
||||
function main() {
|
||||
[ -z "$MERAKI_API_KEY" ] && err "Meraki Key is not set up. Please set it via export MERAKI_API_KEY=<XXXXX>"
|
||||
[ -z "$MERAKI_ORG_ID" ] && err "Meraki Organization ID is not set up. Please set it via export MERAKI_ORG_ID=<XXXXX>"
|
||||
|
||||
timestamp "Getting a list of the network"
|
||||
curl --silent \
|
||||
-H 'Content-Type: application/json' \
|
||||
-H 'X-Cisco-Meraki-API-Key: '"$MERAKI_API_KEY"'' \
|
||||
https://api.meraki.com/api/v1/organizations/"$MERAKI_ORG_ID"/networks |
|
||||
jq -M '.[] | .id + " " + .name'
|
||||
}
|
||||
|
||||
main "$@"
|
2
.zshrc
2
.zshrc
@ -47,7 +47,7 @@ FPATH=/usr/local/share/zsh/site-functions:$FPATH
|
||||
# If command execution time above min. time, plugins will not output time.
|
||||
ZSH_COMMAND_TIME_MIN_SECONDS=10
|
||||
ZSH_COMMAND_TIME_MSG="Execution time: %s sec"
|
||||
ZSH_COMMAND_TIME_EXCLUDE=(ranger git nvim fzf vim mcedit v ssh lg lazygit)
|
||||
ZSH_COMMAND_TIME_EXCLUDE=(ranger git nvim fzf vim mcedit v ssh lg lazygit tmux)
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
# export TERM=xterm-256color
|
||||
|
Loading…
Reference in New Issue
Block a user