summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoxie <moxie.git@posteo.net>2025-09-24 20:17:32 +0300
committermoxie <moxie.git@posteo.net>2025-09-24 20:30:23 +0300
commit4ac5c1efb09aded38a0230078c5311af05fc93de (patch)
tree4a0e447b420254866fef7b4102cc87cd0cbc4323
add .tmux.conf
-rw-r--r--.tmux.conf102
1 files changed, 102 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
new file mode 100644
index 0000000..0def51b
--- /dev/null
+++ b/.tmux.conf
@@ -0,0 +1,102 @@
+if-shell '[ "$TERM" = "foot" ]' {
+ set -g default-terminal "foot"
+ set -ga terminal-overrides ",foot:RGB"
+}
+
+if-shell '[ "$TERM" != "foot" ] && infocmp "screen-256color" > /dev/null 2>&1' {
+ set -g default-terminal "screen-256color"
+ if-shell '[[ "$COLORTERM" =~ (truecolor|24bit) ]]' {
+ set -ga terminal-overrides ",screen-256color:RGB"
+ }
+}
+
+if-shell '[ "$TERM" != "foot" ] && ! infocmp "screen-256color" > /dev/null 2>&1' {
+ set -g default-terminal "screen"
+}
+
+set -s escape-time 0
+bind r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"
+
+# set -g terminal-overrides '*:smcup@:rmcup@'
+# set -g status off
+
+set -g base-index 1
+set -g pane-base-index 1
+set -wg pane-base-index 1
+set -g renumber-windows on
+set -g focus-events on
+set -wg automatic-rename off
+
+# set vim keys
+set-window-option -g mode-keys vi
+bind -T prefix v copy-mode
+bind -T copy-mode-vi v send-keys -X begin-selection
+bind -T copy-mode-vi V send-keys -X select-line
+bind -T copy-mode-vi C-v send-keys -X rectangle-toggle
+#bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'wl-copy -p'
+set -s set-clipboard external
+set -s copy-command 'wl-copy -p' # v3.2+
+
+bind -r ^ last-window
+bind h select-pane -L
+bind j select-pane -D
+bind k select-pane -U
+bind l select-pane -R
+
+bind -r -T prefix C-h resize-pane -L 5
+bind -r -T prefix C-j resize-pane -D 5
+bind -r -T prefix C-k resize-pane -U 5
+bind -r -T prefix C-l resize-pane -R 5
+
+bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
+bind-key -r i run-shell "tmux neww tmux-cht.sh"
+bind-key -r m run-shell "~/.local/bin/tmux-sessionizer mail"
+bind-key -r M run-shell "~/.local/bin/tmux-sessionizer media"
+bind-key -r C run-shell "~/.local/bin/tmux-sessionizer code"
+
+# Backgrounds
+set -g @bg0_hard "#1d2021" # colour234
+set -g @bg0 "#282828" # colour235
+set -g @bg0_soft "#32302f" # colour236
+set -g @bg1 "#3c3836" # colour237
+set -g @bg2 "#504945" # colour239
+set -g @bg3 "#665c54" # colour241
+set -g @bg4 "#7c6f64" # colour243
+
+# Foregrounds
+set -g @fg "#ebdbb2" # colour223
+set -g @fg0 "#fbf1c7" # colour229
+set -g @fg1 "#ebdbb2" # colour223
+set -g @fg2 "#d5c4a1" # colour250
+set -g @fg3 "#bdae93" # colour248
+set -g @fg4 "#a89984" # colour246
+
+# Colors
+set -g @gray "#a89984" # colour246
+set -g @alt_gray "#928374" # colour245
+set -g @red "#cc241d" # colour124
+set -g @alt_red "#fb4934" # colour167
+set -g @green "#98971a" # colour106
+set -g @alt_green "#b8bb26" # colour142
+set -g @yellow "#d79921" # colour172
+set -g @alt_yellow "#fabd2f" # colour214
+set -g @blue "#458588" # colour66
+set -g @alt_blue "#83a598" # colour109
+set -g @purple "#b16286" # colour132
+set -g @alt_purple "#d3869b" # colour175
+set -g @aqua "#689d6a" # colour72
+set -g @alt_aqua "#8ec07c" # colour108
+set -g @orange "#d65d0e" # colour166
+set -g @alt_orange "#fe8019" # colour208
+
+set -g status-position bottom
+set -g status-interval 15
+set -g status-justify left
+
+set -g window-status-current-style "bg=#{@bg0},fg=#{@alt_orange}"
+set -g status-style "bg=#{@bg0},fg=#{@fg4}"
+set -g status-left "#[bg=#{@bg0}, fg=#{@bg4}] [#S] "
+set -g status-left-length "20"
+set -g status-right "#[bg=#{@bg1}, fg=#{@fg4}] #h #[bg=#{@bg0},fg=#{@fg3}] %d-%m-%Y | %H:%M "
+
+# vim: set ft=tmux tw=0 nowrap: