Split laptop/work into independent stow packages with shared/ base
- Remove work/laptop detection logic from nvim and emacs configs; each
package now has a self-contained init that requires no runtime checks
- Create shared/ stow package containing nvim/init.lua, emacs/init.el,
common-dev-settings.el, org-bindings.el, tmux, ghostty, and ranger
- Rename laptop-languages.lua / work-languages.lua → languages.lua in
each package; shared/init.lua uses require('languages') generically
- Rename work-dev-settings.el → dev-settings.el to match laptop naming
- Expand work/ to include the full set of dev tools (tmux, ghostty,
ranger, emacs, neovim) without email/calendar tooling
- Add Makefile with `make laptop` and `make work` targets (each runs
a single `stow shared <profile>` invocation)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
56
shared/.config/tmux/tmux.conf
Normal file
56
shared/.config/tmux/tmux.conf
Normal file
@@ -0,0 +1,56 @@
|
||||
# tmux.conf — vim-style keybindings
|
||||
|
||||
# Prefix
|
||||
set -g prefix C-Space
|
||||
unbind C-b
|
||||
bind C-Space send-prefix
|
||||
|
||||
# Splits
|
||||
unbind '"'
|
||||
unbind %
|
||||
bind s split-window -v -c "#{pane_current_path}"
|
||||
bind v split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# Close
|
||||
bind x kill-pane
|
||||
|
||||
# Pane navigation: prefix+hjkl and M-hjkl without prefix
|
||||
bind h select-pane -L
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
bind l select-pane -R
|
||||
|
||||
bind -n M-h select-pane -L
|
||||
bind -n M-j select-pane -D
|
||||
bind -n M-k select-pane -U
|
||||
bind -n M-l select-pane -R
|
||||
|
||||
# Copy mode with vi keys
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# General
|
||||
set -g mouse on
|
||||
set -g history-limit 10000
|
||||
set -sg escape-time 0 # no delay for escape — important for vim
|
||||
set -g focus-events on
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -as terminal-overrides ',*:Tc' # true color passthrough
|
||||
set -g xterm-keys on # pass modified keys (S-Arrow etc.) to inner apps
|
||||
|
||||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
set -g renumber-windows on
|
||||
|
||||
# Status bar — catppuccin mocha
|
||||
set -g status-style "bg=#1e1e2e fg=#cdd6f4"
|
||||
set -g status-left "#[fg=#89b4fa,bold] #S "
|
||||
set -g status-right "#[fg=#a6e3a1]#H #[fg=#cdd6f4]%H:%M "
|
||||
set -g status-left-length 30
|
||||
|
||||
set -g window-status-format "#[fg=#6c7086] #I #W "
|
||||
set -g window-status-current-format "#[fg=#cdd6f4,bold] #I #W "
|
||||
|
||||
set -g pane-border-style "fg=#313244"
|
||||
set -g pane-active-border-style "fg=#89b4fa"
|
||||
|
||||
set -g message-style "bg=#313244 fg=#cdd6f4"
|
||||
Reference in New Issue
Block a user