From dd91c7dcaa2608a1a11300b90162a4b73fb6ff24 Mon Sep 17 00:00:00 2001 From: Crizomb Date: Mon, 19 Jan 2026 03:02:23 +0100 Subject: [PATCH 1/2] tmux conf --- .tmux.conf | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .tmux.conf diff --git a/.tmux.conf b/.tmux.conf new file mode 100644 index 0000000..fa287a3 --- /dev/null +++ b/.tmux.conf @@ -0,0 +1,48 @@ +# Make sure tmux use zsh +set -g default-shell /usr/bin/zsh +set -g default-command /usr/bin/zsh + +# Enable mouse control (clickable windows, panes, resizable panes) +set -g mouse on + +# DESIGN TWEAKS + +# don't do anything when a 'bell' rings +set -g visual-activity off +set -g visual-bell off +set -g visual-silence off +setw -g monitor-activity off +set -g bell-action none + +# clock mode +setw -g clock-mode-colour yellow + +# copy mode +setw -g mode-style 'fg=black bg=red bold' + +# panes +set -g pane-border-style 'fg=red' +set -g pane-active-border-style 'fg=yellow' + +# statusbar +set -g status-position bottom +set -g status-justify left +set -g status-style 'fg=green' + +set -g status-left '' +set -g status-left-length 10 + +set -g status-right-style 'fg=black bg=yellow' +set -g status-right '%Y-%m-%d %H:%M ' +set -g status-right-length 50 + +setw -g window-status-current-style 'fg=black bg=green' +setw -g window-status-current-format ' #I #W #F ' + +setw -g window-status-style 'fg=green bg=black' +setw -g window-status-format ' #I #[fg=white]#W #[fg=yellow]#F ' + +setw -g window-status-bell-style 'fg=yellow bg=red bold' + +# messages +set -g message-style 'fg=yellow bg=red bold' From b892d9464993296daa3e0ab92969c179c1d5791e Mon Sep 17 00:00:00 2001 From: Crizomb Date: Mon, 19 Jan 2026 03:31:52 +0100 Subject: [PATCH 2/2] more tmux modif --- .tmux.conf | 20 +++++++++++++++----- .zshrc | 3 +++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index fa287a3..e2a700c 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -5,6 +5,16 @@ set -g default-command /usr/bin/zsh # Enable mouse control (clickable windows, panes, resizable panes) set -g mouse on +# I don't like ctrl+b +set -g prefix C-x + +# Unbind the default Ctrl+b +unbind C-b +# Ensure we can still send Ctrl+x to applications (by pressing it twice) +bind C-x send-prefix + +bind b previous-window + # DESIGN TWEAKS # don't do anything when a 'bell' rings @@ -32,14 +42,14 @@ set -g status-style 'fg=green' set -g status-left '' set -g status-left-length 10 -set -g status-right-style 'fg=black bg=yellow' -set -g status-right '%Y-%m-%d %H:%M ' -set -g status-right-length 50 +set -g status-right-style 'fg=white bg=default' +set -g status-right '%d %b %H:%M' +set -g status-right-length 25 -setw -g window-status-current-style 'fg=black bg=green' +setw -g window-status-current-style 'fg=green bg=default' setw -g window-status-current-format ' #I #W #F ' -setw -g window-status-style 'fg=green bg=black' +setw -g window-status-style 'fg=white bg=default' setw -g window-status-format ' #I #[fg=white]#W #[fg=yellow]#F ' setw -g window-status-bell-style 'fg=yellow bg=red bold' diff --git a/.zshrc b/.zshrc index f271296..dd0bdbe 100644 --- a/.zshrc +++ b/.zshrc @@ -1,3 +1,6 @@ +if [ -z "$TMUX" ] && [ -n "$PS1" ]; then + exec tmux +fi export ZSH="$HOME/.oh-my-zsh" # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes