diff options
| author | Max Bossing <max@bossi.ng> | 2025-07-15 21:56:27 +0200 |
|---|---|---|
| committer | Max Bossing <max@bossi.ng> | 2025-07-15 21:57:49 +0200 |
| commit | 69fdda0d1d7bfc39b097ebe354edfe0b6443c1cd (patch) | |
| tree | c42b9e55ce53ba853f23b15d81172cef4c83430e | |
| parent | 5048714caf71e5ed77bd14ce72fb820cec291304 (diff) | |
tmux config
| -rw-r--r-- | dots.toml | 5 | ||||
| -rw-r--r-- | tmux/tmux.conf | 47 |
2 files changed, 51 insertions, 1 deletions
@@ -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 |
