mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 00:33:00 +00:00
Update tmux and karabiner
This commit is contained in:
parent
4cba004d09
commit
f43906adb6
5 changed files with 209 additions and 0 deletions
34
.tmux.conf
Normal file
34
.tmux.conf
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Prefix
|
||||
# -----------------
|
||||
set-option -g prefix C-x
|
||||
unbind C-b
|
||||
bind C-x send-prefix
|
||||
|
||||
# Index
|
||||
# -----------------
|
||||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
|
||||
# History
|
||||
# -----------------
|
||||
set -g history-limit 4096
|
||||
|
||||
# Reload Config
|
||||
# -----------------
|
||||
bind r source-file ~/.tmux.conf \; display "Reloaded Config"
|
||||
|
||||
# Vi Mode
|
||||
# -----------------
|
||||
set -g status-keys vi
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# Windows Management
|
||||
# -----------------
|
||||
bind | split-window -h
|
||||
unbind '"'
|
||||
bind - split-window -v
|
||||
unbind %
|
||||
bind h select-pane -L
|
||||
|
||||
|
||||
|
||||
26
mac/karabiner/caps_to_esc_lcmd.json
Normal file
26
mac/karabiner/caps_to_esc_lcmd.json
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{
|
||||
"description": "CapsLock to ESC (alone) or LCommand (withKeys)",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "caps_lock",
|
||||
"modifiers": {
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_command"
|
||||
}
|
||||
],
|
||||
"to_if_alone": [
|
||||
{
|
||||
"key_code": "escape"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
121
mac/karabiner/emacs_basic.json
Normal file
121
mac/karabiner/emacs_basic.json
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
{
|
||||
"description": "lctrl + p/n/b/f/a/e to up/down/left/right/home/end",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "p",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"left_control"
|
||||
],
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "up_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "n",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"left_control"
|
||||
],
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "down_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "b",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"left_control"
|
||||
],
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "f",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"left_control"
|
||||
],
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "right_arrow"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "a",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"left_control"
|
||||
],
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "left_arrow",
|
||||
"modifiers": "command"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
},
|
||||
{
|
||||
"from": {
|
||||
"key_code": "e",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"left_control"
|
||||
],
|
||||
"optional": [
|
||||
"any"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "right_arrow",
|
||||
"modifiers": "command"
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
24
mac/karabiner/fn-tab_to_cmd-tab.json
Normal file
24
mac/karabiner/fn-tab_to_cmd-tab.json
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"description": "Map fn+tab to cmd+tab",
|
||||
"manipulators": [
|
||||
{
|
||||
"from": {
|
||||
"key_code": "tab",
|
||||
"modifiers": {
|
||||
"mandatory": [
|
||||
"fn"
|
||||
]
|
||||
}
|
||||
},
|
||||
"to": [
|
||||
{
|
||||
"key_code": "tab",
|
||||
"modifiers": [
|
||||
"left_command"
|
||||
]
|
||||
}
|
||||
],
|
||||
"type": "basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -88,6 +88,10 @@ if (-not ($__lastStartup -eq $_currentDate)) {
|
|||
$_currentDate | Out-File -FilePath $SystemlogFilePath -Append
|
||||
}
|
||||
|
||||
Remove-Variable SystemlogFilePath
|
||||
Remove-Variable __lastStartup
|
||||
Remove-Variable _currentDate
|
||||
|
||||
## Chocolatey ##
|
||||
|
||||
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue