summaryrefslogtreecommitdiff
path: root/.config/tmux
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2023-04-01 19:12:44 +0200
committeryuzu-eva <stevenhu@web.de>2023-04-01 19:12:44 +0200
commitccba79d7f97140a325af7b98b8ce2917e7cf4fc8 (patch)
tree2b3ff294f2ab915a08916125a9e4fd2c3fa126ac /.config/tmux
parent39e9d4e4f740647e49cf7f2f090bc0ddb27a7d76 (diff)
parentbe35ccddeb63db26949183ade5a801593918a597 (diff)
merge desktop into master
Diffstat (limited to '.config/tmux')
-rw-r--r--.config/tmux/tmux.conf41
1 files changed, 41 insertions, 0 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
new file mode 100644
index 0000000..1db3b54
--- /dev/null
+++ b/.config/tmux/tmux.conf
@@ -0,0 +1,41 @@
+# Status-bar settings
+set -g status-right "%H:%M"
+set -g window-status-current-style "underscore"
+set -g message-command-style 'fg=#000000,bg=#FFFF00'
+set -g message-style 'fg=#000000, bg=#FFFF00'
+set -g status-bg '#333333'
+set -g status-fg '#FFFFFF'
+set -g set-titles on
+set -g set-titles-string "#T"
+
+# Enable RGB colour if running in xterm(1)
+set-option -sa terminal-overrides ",xterm*:Tc"
+
+# Change the default $TERM to tmux-256color
+set -g default-terminal "tmux-256color"
+
+# Set history-limit
+set -g history-limit 30000
+
+## KEYBINDS
+
+# Change the prefix key to C-a
+set -g prefix C-a
+unbind C-b
+bind C-a send-prefix
+
+bind C-v split-window -v # split vertically
+bind C-h split-window -h # split horizontally
+bind C-w killp # kill pane
+bind C-q killw # kill window
+bind -n M-h select-pane -L
+bind -n M-l select-pane -R
+bind -n M-k select-pane -U
+bind -n M-j select-pane -D
+
+# Turn the mouse on, but without copy mode dragging
+set -g mouse off
+
+# Keys to toggle monitoring activity in a window and the synchronize-panes option
+bind m set monitor-activity
+bind y set synchronize-panes\; display 'synchronize-panes #{?synchronize-panes,on,off}'