From f780bb0c4d49a8eb9fc18e7f4d868147725f2fd4 Mon Sep 17 00:00:00 2001 From: sebastian Date: Thu, 10 Apr 2025 13:22:52 +0200 Subject: [PATCH] add tmux --- dot_config/tmux/executable_green.tmuxtheme | 77 ++++++++++++++++++++ dot_config/tmux/tmux.conf | 81 ++++++++++++++++++++++ 2 files changed, 158 insertions(+) create mode 100644 dot_config/tmux/executable_green.tmuxtheme create mode 100644 dot_config/tmux/tmux.conf diff --git a/dot_config/tmux/executable_green.tmuxtheme b/dot_config/tmux/executable_green.tmuxtheme new file mode 100644 index 0000000..f70edd7 --- /dev/null +++ b/dot_config/tmux/executable_green.tmuxtheme @@ -0,0 +1,77 @@ +# +# Powerline Double Green - Tmux Theme +# Created by Jim Myhrberg . +# +# Inspired by vim-powerline: https://github.com/Lokaltog/powerline +# +# Requires terminal to be using a powerline compatible font, find one here: +# https://github.com/Lokaltog/powerline-fonts +# + +# Status update interval +set -g status-interval 1 + +# Basic status bar colors +set -g status-fg colour240 +set -g status-bg colour233 + +# Left side of status bar +set -g status-left bg=colour233 +set -g status-left fg=colour243 +set -g status-left-length 40 +set -g status-left "#[fg=colour233,bg=colour100,bold] #S #[fg=colour100,bg=colour240,nobold]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour235]#[fg=colour240,bg=colour235] #I:#P #[fg=colour235,bg=colour233,nobold]" + +# Right side of status bar +set -g status-right-bg=colour233 +set -g status-right-fg=colour243 +set -g status-right-length 150 +set -g status-right "#[fg=colour235,bg=colour233]#[fg=colour240,bg=colour235] %H:%M:%S #[fg=colour240,bg=colour235]#[fg=colour233,bg=colour240] %d-%b-%y #[fg=colour100,bg=colour240]#[fg=colour233,bg=colour100,bold] #H " + +# Window status +set -g window-status-format " #I:#W#F " +set -g window-status-current-format "#[fg=colour233,bg=black]#[fg=colour190,nobold] #I:#W#F #[fg=colour233,bg=black,nobold]" + +# Current window status +set -g window-status-current bg=colour100 +set -g window-status-current fg=colour235 + +# Window with activity status +set -g window-status-activity bg=colour245 + # fg and bg are flipped here due to + +set -g window-status-activity fg=colour233 +# a bug in tmux + +# Window separator +set -g window-status-separator "" + +# Window status alignment +set -g status-justify centre + +# Pane border +set -g pane-border bg=default +set -g pane-border fg=colour238 + +# Active pane border +set -g pane-active-border bg=default +set -g pane-active-border fg=colour100 + +# Pane number indicator +set -g display-panes-colour colour233 +set -g display-panes-active-colour=colour245 + +# Clock mode +set -g clock-mode-colour colour100 +set -g clock-mode-style 24 + +# Message +set -g message-bg colour100 +set -g message-fg black + +# Command message +set -g message-command-bg colour233 +set -g message-command-fg black + +# Mode +set -g mode bg=colour100 +set -g mode fg=colour235 diff --git a/dot_config/tmux/tmux.conf b/dot_config/tmux/tmux.conf new file mode 100644 index 0000000..48c103a --- /dev/null +++ b/dot_config/tmux/tmux.conf @@ -0,0 +1,81 @@ +#set -g default-terminal 'screen-256color' + +set -ga terminal-overrides ",xterm-256color:Tc" + +# enable Mouse Mode +set -g mouse off + + +# start window numbers at 1 to match keyboard order with tmux window order +set -g base-index 1 +set-window-option -g pane-base-index 1 + + +#source-file /home/sebastian/.tmux/green.tmuxtheme +#source-file /home/sebastian/.tmux/orange.tmuxtheme + +#run-shell "/home/sebastian/tools/tmux-power/tmux-power.tmux" + +set -g @tmux_power_theme 'forest' + + +set -g @tmux_power_date_icon ' ' # set it to a blank will disable the icon +set -g @tmux_power_time_icon '🕘' # emoji can be used if your terminal supports +set -g @tmux_power_user_icon 'U' +set -g @tmux_power_session_icon 'S' +set -g @tmux_power_upload_speed_icon '↑' +set -g @tmux_power_download_speed_icon '↓' + +set -g @tmux_power_show_upload_speed true +set -g @tmux_power_show_download_speed true + +# if run as "tmux attach", create a session if one does not already exist +#new-session -n $HOST + + +bind-key -n C-a send-prefix + +#bindkey -n C-n new-window -c "#{pane_current_path}" +bind '"' split-window -c "#{pane_current_path}" +bind % split-window -h -c "#{pane_current_path}" +bind c new-window -c "#{pane_current_path}" + +bind-key S-Left swap-window -t -1 +bind-key S-Right swap-window -t +1 + +# Scroll through Windows with Ctrl+B followed by Ctrl-H and Ctrl-L +bind -n C-h select-window -t :- +bind -n C-l select-window -t :+ +# Scroll through Windows with Ctrl+B followed by Ctrl-left-arrow and Ctrl-right-arrow +bind -n C-Left select-window -t :- +bind -n C-Right select-window -t :+ + + +#bind -n F1 select-window -t :=11 +#bind -n F2 select-window -t :=12 +#bind -n F3 select-window -t :=13 +#bind -n F4 select-window -t :=14 +#bind -n F5 select-window -t :=15 +#bind -n F6 select-window -t :=16 +#bind -n F7 select-window -t :=17 +#bind -n F8 select-window -t :=18 +#bind -n F9 select-window -t :=19 +#bind -n F10 select-window -t :=20 +#bind -n F11 select-window -t :=10 + + +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +set -g @plugin 'wfxr/tmux-power' +set -g @plugin 'wfxr/tmux-net-speed' + + +set -g @plugin "nordtheme/tmux" + + + +run '~/.tmux/plugins/tpm/tpm' + +set -g @plugin 'tmux-plugins/tmux-yank' +