diff options
author | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2023-11-11 12:51:28 +0100 |
---|---|---|
committer | jakob.stendahl <jakob.stendahl@infomedia.dk> | 2023-11-11 12:51:28 +0100 |
commit | 60ea569c980eac5787c05e94bc474c852a4f11f9 (patch) | |
tree | c8bf05e252c6672063ebadd71c4885ff3119a794 /linux | |
parent | 643fdee5981c72dd5e972d3158806e90ae4b420f (diff) | |
download | dotfiles-60ea569c980eac5787c05e94bc474c852a4f11f9.tar.gz dotfiles-60ea569c980eac5787c05e94bc474c852a4f11f9.zip |
Do some design changes
Diffstat (limited to 'linux')
-rw-r--r-- | linux/tmux.conf | 45 |
1 files changed, 31 insertions, 14 deletions
diff --git a/linux/tmux.conf b/linux/tmux.conf index 35f249b..b1bb2cb 100644 --- a/linux/tmux.conf +++ b/linux/tmux.conf @@ -1,19 +1,15 @@ # -- general ------------------------------------------------------------------- -#set -g default-terminal "xterm-256color" -set -g default-terminal "screen-256color" -#set -g default-terminal "xterm-256color" +#set -g default-terminal "screen-256color" +#set -g default-terminal "screen-256color-bce" +set -g default-terminal "xterm-256color" #set -as terminal-overrides ",*:U8=0" #set-option -sa terminal-overrides ',xterm-256color:RGB' set-option -ga terminal-overrides ",xterm-256color:Tc" -set -s escape-time 10 # faster command sequences +set -s escape-time 0 # faster command sequences set -s focus-events on -#run-shell "powerline-daemon -q" -#source "/usr/local/lib/python3.7/site-packages/powerline/bindings/tmux/powerline.conf" -source "/home/jakob/.local/lib/python3.9/site-packages/powerline/bindings/tmux/powerline.conf" - # -- display ------------------------------------------------------------------- set -g base-index 1 setw -g pane-base-index 1 @@ -23,13 +19,10 @@ set -g renumber-windows on # renumber windows when a window is closed set -g display-panes-time 800 # slightly longer pane indicators display time set -g display-time 1000 # slightly longer status messages display time -set -g status-interval 10 # redraw status line every 10 seconds +set -g status-interval 10 # redraw status linebg every 10 seconds set-option -g default-shell /usr/bin/zsh -#set-option -g display-panes-active-colour colour33 -#set-option -g display-panes-colour colour166 - # activity set -g monitor-activity on set -g visual-activity off @@ -42,6 +35,7 @@ set -g visual-activity on unbind C-b set -g prefix C-a +bind C-a send-prefix bind -n C-M-h resize-pane -L 2 bind -n C-M-j resize-pane -D 2 @@ -80,7 +74,7 @@ set -g mouse on bind-key = set-window-option synchronize-panes # -- macros -------------------------------------------------------------------- -bind-key a send-keys \"jakob.stendahl\ <jakob.stendahl@infomedia.dk>\" +bind-key s send-keys \"jakob.stendahl\ <jakob.stendahl@infomedia.dk>\" # -- vim-tmux-navigator -------------------------------------------------------- # Smart pane switching with awareness of Vim splits. @@ -104,4 +98,27 @@ bind-key -T copy-mode-vi 'C-l' select-pane -R bind-key -T copy-mode-vi 'C-\' select-pane -l # -- Utility ------------------------------------------------------------------ -bind-key r source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded" +bind-key r source-file ~/.tmux.conf + +# -- Theme -------------------------------------------------------------------- +set -g status-justify left +set -g status-interval 2 +set -g status-position bottom +set -g status-bg '#f8f8f8' +set -g status-fg colour16 + +set -g status-left '#[default] #[fg=colour0,bg=colour7,bold][#S]#[bg=colour15] ' +set -g status-left-length 20 + +set -g status-right '#[fg=colour0,bg=colour7,bold] #(hostname) #[default] #[fg=colour0,bg=colour7,bold] %d/%m/%y #[default] #[fg=colour0,bg=colour7,bold] %H:%M:%S #[default] #[bg=colour7,bold] #(cat /sys/class/power_supply/BAT0/capacity)% #[default] #[fg=colour232,bg=colour202,bold]#{?client_prefix, <Prefix> ,}' +set -g status-right-length 50 + +setw -g window-status-format ' #I:#W#F ' +setw -g window-status-current-format ' #I:#W#F ' + +setw -g window-status-current-style "bg=colour0,fg=colour15" +setw -g window-status-style "bg=colour7,fg=colour15" +setw -g window-status-bell-style "bg=colour23,fg=colour15" +setw -g window-status-activity-style "bg=colour23,fg=colour15" + + |