Compare commits

..

7 Commits

4 changed files with 57 additions and 65 deletions

View File

@@ -10,7 +10,7 @@ after-login-command = []
# JankyBorders has a built-in detection of already running process, # JankyBorders has a built-in detection of already running process,
# so it won't be run twice on AeroSpace restart # so it won't be run twice on AeroSpace restart
after-startup-command = [ after-startup-command = [
'exec-and-forget borders active_color=0xffeff1f5 inactive_color=0xff8c8fa1 width=10.0' 'exec-and-forget borders active_color=0xffeff1f5 inactive_color=0xff8c8fa1 width=3.0'
] ]
# Start AeroSpace at login # Start AeroSpace at login

View File

@@ -1,11 +1,7 @@
font-family = MesloLGM Nerd Font Mono font-family = MesloLGM Nerd Font Mono
font-thicken = true font-thicken = true
font-size = 15 font-size = 15
theme = catppuccin-mocha theme = Catppuccin Mocha
window-inherit-font-size = true
window-height = 33
window-width = 130
cursor-opacity = 0.5 cursor-opacity = 0.5
cursor-style-blink = true cursor-style-blink = true
@@ -13,9 +9,13 @@ cursor-style-blink = true
background-opacity = 0.9 background-opacity = 0.9
background-blur-radius = 20 background-blur-radius = 20
initial-command = tmux new -A -s main initial-command = /opt/homebrew/bin/tmux new -A -s main
quit-after-last-window-closed = true quit-after-last-window-closed = true
window-inherit-font-size = true
window-height = 33
window-width = 130
mouse-hide-while-typing = true mouse-hide-while-typing = true
shell-integration = zsh shell-integration = zsh
clipboard-paste-protection = false clipboard-paste-protection = false

View File

@@ -1,109 +1,100 @@
### General Settings ### General Settings
# Enable mouse support in tmux # Mouse support
set -g mouse on set -g mouse on
# Set the default terminal type to "tmux-256color" for better color support # Terminal type
set -g default-terminal "tmux-256color" set -g default-terminal "tmux-256color"
# Set the base index for windows to 1 (instead of the default 0) # Window base index
set -g base-index 1 set -g base-index 1
# Set the base index for panes to 1 (instead of the default 0) # Pane base index
setw -g pane-base-index 1 setw -g pane-base-index 1
# Increase the history limit (useful for longer command histories) # History limit
set-option -g history-limit 50000 set-option -g history-limit 10000
### Startup Configuration ### Startup Configuration
# Attach to session "main" or create it if it doesn't exist # Ensure main session exists and setup startup layout
new-session -A -s main if-shell 'tmux has-session -t main 2>/dev/null' '' 'new-session -ds main; send-keys -t main:1 "htop" C-m; split-window -t main:1'
# Start htop and split the window when the session "main" is created
set-hook -t main after-new-session 'send-keys -t main:1 "htop" C-m; split-window'
### Key Bindings ### Key Bindings
# Remap the prefix key from 'C-b' (Ctrl-b) to 'C-a' (Ctrl-a) # Prefix key
unbind C-b unbind C-b
set-option -g prefix C-a set-option -g prefix C-a
bind-key C-a send-prefix bind-key C-a send-prefix
# Split panes using 'h' for horizontal and 'v' for vertical splits # Pane splits
bind h split-window -h bind "h" split-window -h
bind v split-window -v bind "v" split-window -v
unbind '"' unbind '"'
unbind % unbind %
# Reload the tmux configuration file with 'r' # Reload config
bind r source-file ~/.config/tmux/tmux.conf bind r source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display-message "tmux config reloaded"
### Clipboard Integration ### Clipboard Integration
# Enable clipboard via OSC 52 (works locally and over SSH/mosh) # Clipboard
set -s set-clipboard on set -s set-clipboard on
set -ag terminal-overrides ',*:Ms=\E]52;c;%p2%s\7' set -ag terminal-overrides ",*:Ms=\\E]52;c;%p2%s\\7"
# Vi-style copy mode # Copy mode
setw -g mode-keys vi setw -g mode-keys vi
# Copy mode key bindings # Copy bindings
bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel ~/.config/tmux/yank.sh bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "$XDG_CONFIG_HOME/tmux/yank.sh"
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel ~/.config/tmux/yank.sh bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "$XDG_CONFIG_HOME/tmux/yank.sh"
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel ~/.config/tmux/yank.sh bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "$XDG_CONFIG_HOME/tmux/yank.sh"
### Status and Window Configuration ### Status and Window Configuration
# Set the status bar update interval to 1 second # Status interval
set -g status-interval 1 set -g status-interval 1
# Enable automatic renaming of windows # Auto rename
set-option -g automatic-rename on set-option -g automatic-rename on
# Set window title to the current directory if the process is zsh, otherwise show the process name with arguments # Rename format
set-option -g automatic-rename-format '#{?#{==:#{pane_current_command},zsh},#(echo #{pane_current_path} | sed "s|^$HOME|~|"),#{pane_current_command}}' set-option -g automatic-rename-format '#{?#{==:#{pane_current_command},zsh},#(echo #{pane_current_path} | sed "s|^$HOME|~|"),#{pane_current_command}}'
# Set the color of the clock mode # Clock color
set -g clock-mode-colour "#8bd5ca" set -g clock-mode-colour "#8bd5ca"
# Set the style for copy mode (foreground black, background a specific color, bold text) # Copy mode style
set -g mode-style 'fg=black bg=#ed8796 bold' set -g mode-style 'fg=black bg=#ed8796 bold'
# Set the style for pane borders # Pane borders
set -g pane-border-style 'fg=white' set -g pane-border-style 'fg=white'
set -g pane-active-border-style 'fg=#8bd5ca' set -g pane-active-border-style 'fg=#8bd5ca'
### Status Bar Configuration ### Status Bar Configuration
# Position the status bar at the bottom # Status position
set -g status-position bottom set -g status-position bottom
# Align status bar items to the left # Status justify
set -g status-justify left set -g status-justify left
# Set the style for the status bar # Status style
set -g status-style 'fg=white,bg=#262626' set -g status-style 'fg=white,bg=#262626'
# Clear the default left status # Clear status left
set -g status-left '' set -g status-left ''
# Set the maximum length for the left status # Status left length
set -g status-left-length 30 set -g status-left-length 30
## Session name in the status bar # Session and prefix
set -ga status-left "#[bg=#444444,fg=white] #S " set -ga status-left '#[fg=#cad3f5,bg=#1e1e2e] #S #[fg=#{?client_prefix,#f38ba8,#585b70}]● '
# Display different colors for the session name based on whether the prefix is active # Window tabs
set -ga status-left '#[fg=black]#{?client_prefix,#[bg=#ed8796] S ,#[bg=#a6da95] S }' setw -g window-status-format '#[fg=#cdd6f4,bg=#313244] #I: #W #[fg=#cdd6f4,bg=#1e1e2e] '
set -ga status-left '#[bg=#262626] ' setw -g window-status-current-format '#[fg=#1e1e2e,bg=#cba6f7,bold] #I: #W #[fg=#cdd6f4,bg=#1e1e2e,nobold] '
# Set window status format to include the current directory or command # Window separator
setw -g window-status-format '#[bg=#8787AF,fg=black] #I #[bg=#585B70,fg=white] #W #F ' set -g window-status-separator ''
# Set the current window status format to include the current directory or command # Status right
setw -g window-status-current-format '#[bg=#c6a0f6,fg=black] #I #[bg=#585B70,fg=white] #W #F ' set -g status-right ''
set -g status-right-length 50
# Set the separator between window statuses set -ga status-right '#{?SSH_CONNECTION,#[fg=#1e1e2e#,bg=#fab387#,bold] SSH #[fg=#cdd6f4#,bg=#1e1e2e#,nobold] ,}'
set -g window-status-separator " " set -ga status-right '#[fg=#1e1e2e,bg=#94e2d5,bold] #H #[fg=#cdd6f4,bg=#1e1e2e,nobold]'
# Status bar right settings (display host information, red when connected via SSH)
set -g status-right '#{?SSH_CONNECTION,#[fg=black bg=#ed8796],#[fg=black bg=#7dc4e4]} H #[fg=white,bg=brightblack] #H '
# Set the maximum length for the right status
set -g status-right-length 40

View File

@@ -21,7 +21,7 @@ autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
" Specify a directory for plugins " Specify a directory for plugins
call plug#begin($VIMDOTDIR.'/plugged') call plug#begin($VIMDOTDIR.'/plugged')
Plug 'elzr/vim-json' Plug 'elzr/vim-json'
Plug 'nordtheme/vim' Plug 'catppuccin/vim', { 'as': 'catppuccin' }
call plug#end() call plug#end()
set backspace=2 " Make the backspace behave as most applications. set backspace=2 " Make the backspace behave as most applications.
@@ -42,7 +42,8 @@ set nrformats-=octal " Remove octal support from 'nrformats'.
set tabstop=2 " Size of a Tab character. set tabstop=2 " Size of a Tab character.
set shiftwidth=2 " Use same value as 'tabstop'. set shiftwidth=2 " Use same value as 'tabstop'.
set softtabstop=2 " Use same value as 'shiftwidth'. set softtabstop=2 " Use same value as 'shiftwidth'.
color nord " Use Nord color scheme set termguicolors " Enable true color support
color catppuccin_mocha " Use Catppuccin Mocha color scheme
set listchars=tab:»·,trail,eol,nbsp:ʽ " Define invisible chars set listchars=tab:»·,trail,eol,nbsp:ʽ " Define invisible chars
set wrap linebreak " Softwrap long lines at window border, don't break words set wrap linebreak " Softwrap long lines at window border, don't break words
set showbreak=  " Indent softwrapped lines with unbreakable space set showbreak=  " Indent softwrapped lines with unbreakable space