Initial dotfiles setup with GNU stow

Centralize dotfiles from ~ into stow packages:
- zsh: .zshrc, .zshenv
- git: .gitconfig
- nvim: init.lua, lua/, plugin/, after/, lazy-lock.json
- tmux: tmux.conf, session-list.sh
- karabiner: karabiner.json
- ghostty: config.ghostty
- claude: CLAUDE.md, settings.json, settings.local.json, statusline.sh, 30 commands
This commit is contained in:
Harivansh Rathi 2026-02-14 14:45:58 -05:00
commit 44176e60f9
68 changed files with 6529 additions and 0 deletions

View file

@ -0,0 +1,279 @@
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Caps Lock + 6 = Open Telegram",
"manipulators": [
{
"from": {
"key_code": "6",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Telegram'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 5 = Open Riptide",
"manipulators": [
{
"from": {
"key_code": "5",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Riptide-dev'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock to Control (held) / Escape (tapped)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_control" }],
"to_if_alone": [{ "key_code": "escape" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 1 = Open Dia",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Dia'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 2 = Open Ghostty",
"manipulators": [
{
"from": {
"key_code": "2",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Ghostty'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 3 = Open Messages",
"manipulators": [
{
"from": {
"key_code": "3",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Messages'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 4 = Open Signal",
"manipulators": [
{
"from": {
"key_code": "4",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Signal'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + H = Left Arrow",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + J = Scroll Down",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "mouse_key": { "vertical_wheel": 80 } }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + K = Scroll Up",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "mouse_key": { "vertical_wheel": -80 } }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + L = Right Arrow",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + U = Page Up",
"manipulators": [
{
"from": {
"key_code": "u",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "page_up" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + D = Page Down",
"manipulators": [
{
"from": {
"key_code": "d",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "page_down" }],
"type": "basic"
}
]
},
{
"description": "Right Command = Option+W (tmux prefix)",
"manipulators": [
{
"from": {
"key_code": "right_command",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "w",
"modifiers": ["left_option"]
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + g = Bottom, Caps Lock + gg = Top (vim-style)",
"manipulators": [
{
"conditions": [
{
"name": "g_pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "g",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"key_code": "up_arrow",
"modifiers": ["command"]
},
{
"set_variable": {
"name": "g_pressed",
"value": 0
}
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "g_pressed",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "g",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"set_variable": {
"name": "g_pressed",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_canceled": [
{
"set_variable": {
"name": "g_pressed",
"value": 0
}
}
],
"to_if_invoked": [
{
"key_code": "down_arrow",
"modifiers": ["command"]
},
{
"set_variable": {
"name": "g_pressed",
"value": 0
}
}
]
},
"type": "basic"
}
]
}
]
},
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}