Update i3 and tmux configurations

* modified: alacritty/alacritty.toml
* modified: i3/config
* modified: tmux/tmux.conf
This commit is contained in:
2025-09-29 17:21:55 +02:00
parent 1f322528dc
commit ee86e98da9
3 changed files with 125 additions and 22 deletions

View File

@@ -53,35 +53,65 @@ bind -r C-l select-window -t :+
# Reload config file
bind r source-file ~/.config/tmux/tmux.conf \; display "Config reloaded!"
# Screenshot bindings
bind C-s run-shell "tmux capture-pane -peS - > ~/tmux-screenshot-$(date +%Y%m%d-%H%M%S).txt && tmux display-message 'Screenshot saved to ~/tmux-screenshot-*.txt'"
bind C-S run-shell "tmux capture-pane -peS - -e | ansi2html > ~/tmux-screenshot-$(date +%Y%m%d-%H%M%S).html && tmux display-message 'HTML screenshot saved'"
# Enable vi mode in copy mode
setw -g mode-keys vi
# Enable word-wise jumping with Ctrl+Left/Right
bind -n C-Left send-keys M-b
bind -n C-Right send-keys M-f
# Enable word-wise selection with Ctrl+Shift+Left/Right
bind -n C-S-Left send-keys M-B
bind -n C-S-Right send-keys M-F
# Copy mode bindings
bind Enter copy-mode
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection-and-cancel
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i -r"
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -selection clipboard -i -r"
bind -T copy-mode-vi Escape send-keys -X cancel
# Status bar customization
# Strip trailing newlines when copying with mouse
set -s set-clipboard off
# Status bar customization - Root Loops themed
set -g status-position bottom
set -g status-style 'bg=colour235 fg=colour137'
set -g status-left '#[fg=colour233,bg=colour245,bold] #S '
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S '
set -g status-style 'bg=#1a2137 fg=#acb8dc'
set -g status-left '#[fg=#050812,bg=#7f95db,bold] #S #[fg=#7f95db,bg=#1a2137]'
set -g status-right '#[fg=#424f7a,bg=#1a2137]#[fg=#acb8dc,bg=#424f7a] %d/%m #[fg=#66ab75,bg=#424f7a]#[fg=#050812,bg=#66ab75,bold] %H:%M '
set -g status-right-length 50
set -g status-left-length 20
set -g status-left-length 30
# Window status
setw -g window-status-current-style 'fg=colour81 bg=colour238 bold'
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F '
setw -g window-status-style 'fg=colour138 bg=colour235'
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
# Window status - Root Loops themed
setw -g window-status-current-style 'fg=#050812 bg=#c877c1 bold'
setw -g window-status-current-format '#[fg=#1a2137,bg=#c877c1]#[fg=#050812] #I #W #[fg=#c877c1,bg=#1a2137]'
setw -g window-status-style 'fg=#acb8dc bg=#1a2137'
setw -g window-status-format ' #I #W '
setw -g window-status-separator ''
# Pane borders
set -g pane-border-style 'fg=colour238'
set -g pane-active-border-style 'fg=colour51'
# Pane borders - Root Loops themed
set -g pane-border-style 'fg=#424f7a bg=#050812'
set -g pane-active-border-style 'fg=#7f95db bg=#050812'
# Messages
set -g message-style 'fg=colour232 bg=colour166 bold'
# Messages - Root Loops themed
set -g message-style 'fg=#050812 bg=#b0964e bold'
set -g message-command-style 'fg=#050812 bg=#51a7b6'
# Mode colors (selection)
set -g mode-style 'fg=#050812 bg=#c877c1'
# Clock mode
set -g clock-mode-colour '#7f95db'
set -g clock-mode-style 24
# Copy mode colors
set -g copy-mode-match-style 'fg=#050812 bg=#d77c6e bold'
set -g copy-mode-current-match-style 'fg=#050812 bg=#66ab75 bold'
set -g copy-mode-mark-style 'fg=#050812 bg=#b0964e bold'
# Activity monitoring
setw -g monitor-activity on
@@ -122,5 +152,22 @@ bind p display-popup -E "tmux list-windows -F '#{window_index}: #{window_name}'
# Break pane into new window
bind B break-pane -d
# Comprehensive tmux operations menu with fzf
bind Space display-popup -E -w 80% -h 80% "bash ~/.config/tmux/tmux-fzf-menu.sh --menu"
# OLD FZF MENU (commented out to use exek launcher on Space)
# bind Space display-popup -E -w 80% -h 80% "bash ~/.config/tmux/tmux-fzf-menu.sh --menu"
# EXEK LAUNCHER - Fast TUI application launcher with fuzzy matching
# Launch with prefix + Space in a popup (replaces fzf menu)
bind Space display-popup -E -w 80% -h 60% '/usr/local/bin/exek'
# Alternative exek bindings:
# Launch in new window with prefix + o
bind o new-window -n launcher '/usr/local/bin/exek'
# Launch in popup with prefix + p (smaller size)
bind P display-popup -E -w 70% -h 50% '/usr/local/bin/exek'
# Quick launcher with Alt+Space (no prefix needed)
bind -n M-Space display-popup -E -w 80% -h 60% '/usr/local/bin/exek'
# Keep the original tmux-fzf-menu on prefix + M for tmux operations
bind M display-popup -E -w 80% -h 80% "bash ~/.config/tmux/tmux-fzf-menu.sh --menu"