From a396ab2abc3230ace2c13aa6c7f859ea0d3a62b6 Mon Sep 17 00:00:00 2001 From: Thomas Naderer Date: Sun, 22 Dec 2024 15:13:59 +0100 Subject: [PATCH] Added Tmux Conf Karabiner now now uses Zen Browser instead of Firefox Nvim-Init Fixed --- tmux/.tmux.conf | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tmux/.tmux.conf diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..c8b4f4e --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,52 @@ +# Reset prefix to Ctrl-b +unbind C-a # Unbind any custom prefixes (e.g., Ctrl-a) +set-option -g prefix C-b +bind C-b send-prefix # Ensure Ctrl-b works as the prefix +# Sensible Defaults +set -g mouse on # Enable mouse support +set -g history-limit 10000 # Large scrollback history +setw -g automatic-rename off # Keep pane names static +set -g base-index 1 # Pane numbering starts at 1 +setw -g pane-base-index 1 # Pane numbering starts at 1 +set-option -g status-keys vi # Use vi-style keybindings + +# Status Bar Customization +set -g status on +set -g status-interval 5 +set -g status-justify centre +set -g status-bg black +set -g status-fg white +set -g status-left-length 30 +set -g status-right-length 30 +set -g status-left "#[fg=green]#S #[fg=cyan]| #[fg=yellow]%H:%M #[fg=magenta]%d-%b" +set -g status-right "#[fg=blue]%a #[fg=cyan]| #[fg=red]#(whoami)" + +# Key Bindings +bind r source-file ~/.config/tmux/.tmux.conf \; display-message "Config Reloaded" +bind \\ split-window -h # Split panes horizontally +bind - split-window -v # Split panes vertically +bind h select-pane -L # Move between panes +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +# Resize panes +bind -r C-h resize-pane -L 5 +bind -r C-j resize-pane -D 5 +bind -r C-k resize-pane -U 5 +bind -r C-l resize-pane -R 5 + +# Copy Mode +setw -g mode-keys vi # Vi copy mode +bind-key -T copy-mode-vi v send -X begin-selection +bind-key -T copy-mode-vi y send -X copy-selection \; send-keys -X cancel + +# Plugins (optional) +set -g @plugin 'tmux-plugins/tpm' # Tmux Plugin Manager +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-prefix-highlight' +set -g @plugin 'tmux-plugins/tmux-powerline' + +# Initialize plugins +run '/opt/homebrew/opt/tpm/share/tpm/tpm'