From 69fdda0d1d7bfc39b097ebe354edfe0b6443c1cd Mon Sep 17 00:00:00 2001 From: Max Bossing Date: Tue, 15 Jul 2025 21:56:27 +0200 Subject: tmux config --- dots.toml | 5 ++++- tmux/tmux.conf | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 tmux/tmux.conf diff --git a/dots.toml b/dots.toml index b2669b4..2ad166e 100644 --- a/dots.toml +++ b/dots.toml @@ -1,4 +1,3 @@ - [[dot]] src = "nvim" dest = ".config/nvim" @@ -22,3 +21,7 @@ dest = ".config/kitty" [[dot]] src = "iamb" dest = ".config/iamb" + +[[dot]] +src = "tmux/tmux.conf" +dest = ".tmux.conf" diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..a7991d1 --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,47 @@ +# Escape time +set -sg escape-time 300 +set-option -g focus-events on + +# Bind leader to [Control-Space] +unbind C-b +set -g prefix C-Space + +# Bind [r] to source tmux.conf +unbind r +bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf" + +# Activate mouse +set -g mouse on + +# Bind h and v to horizontal and vertical split +unbind v # not bound by default, but may be in a future update +unbind h # not bound by default, but may be in a future update +unbind % # Split vertically +unbind '"' # Split horizontally +bind h split-window -h -c "#{pane_current_path}" +bind v split-window -v -c "#{pane_current_path}" + +# Bind x to kill pane without confirmation +unbind x +bind-key x kill-pane # rebind to 'kill pane' to remove confirmation prompt + +# bind t to toggle status bar +unbind t +bind t set-option status + +# Set Command History to 100000 +set -g history-limit 100000 + +# Terminal name +set -g default-terminal "screen-256color" + +# Status Bar config +set-option -g status-interval 1 +set-option -g status-style fg=yellow,bright,bg=default +set-option -g status-left-length 20 +set-option -g status-left "" +set-option -g status-right "" + +# Copy into system clipboard +set -s copy-command 'xclip -in -selection clipboard' +set -s set-clipboard off -- cgit v1.0