dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 24f3a79b94d0b9af190b010c113f69f02700024c
parent ba5a238424f69fbbbe9bed0a597e7294f7990e44
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Fri,  9 Oct 2020 21:40:38 +0200

tmux: split up into light and dark theme

Former-commit-id: f0f153c656df7dc2bffb42b037e17f503f7a42a6
Diffstat:
Mdot.map | 2+-
Atmux/tmux-dark.conf | 141+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Atmux/tmux-light.conf | 139+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dtmux/tmux.conf | 138-------------------------------------------------------------------------------
4 files changed, 281 insertions(+), 139 deletions(-)

diff --git a/dot.map b/dot.map @@ -31,7 +31,7 @@ tuir: ~/.config/tuir screen: - screenrc: ~/.screenrc tmux: -- tmux.conf: ~/.config/tmux/tmux.conf +- tmux-dark.conf: ~/.config/tmux/tmux.conf tmuxinator: ~/.config/tmuxinator ghci: ~/.ghci mpv: ~/.config/mpv diff --git a/tmux/tmux-dark.conf b/tmux/tmux-dark.conf @@ -0,0 +1,141 @@ +# vim: foldmethod=marker foldlevel=0 +# Global options {{{ +# "set" == "set-option" +set -g history-limit 30000 +set -g mouse on +set -g terminal-overrides 'xterm*:smcup@:rmcup@' +set -g default-command $SHELL +set -g default-shell $SHELL +set -g default-terminal "xterm-256color" +set -g pane-active-border-style fg='#f59970' +set -g set-titles on +set -g set-titles-string '#H:#S.#I.#P #W #T' +set -g message-style bg='#185668',fg='#f0e0b2' +set -g status-bg '#11121A' +set -g status-fg '#969696' +set -g status-interval 5 +set -g status-justify right +set -g status-left-length 40 +set -g status-left '#[fg=#557983]» #[fg=#88a6f8,bold]#T#{?pane_synchronized, #[fg=#f59970#,bold][SYNC],}#[default]' +set -g status-right '#[fg=#557983,bold]»» ###S %R %m-%d#(acpi | cut -d ',' -f 2)#[default]' +set -g visual-activity on +set -g base-index 1 # start numbering windows at 1, easier to reach +set -s escape-time 0 +# }}} +# Window options {{{ +setw -g mode-keys vi +setw -g monitor-activity on +setw -g xterm-keys on # for vim +setw -g aggressive-resize on +setw -g automatic-rename +setw -g mode-style bg='#11121A',fg='#f59970' +setw -g window-status-style fg='#4dbba3',bg='#11121A' +setw -g window-status-current-style fg='#f59970',bg='#01021e,bold' +setw -g window-status-activity-style fg='#cb4e62,blink' +setw -g pane-base-index 1 # start numbering panes at 1, easier to reach +# }}} +# Key bindings {{{ +# General {{{ + +# Set the prefix +unbind C-b # unbind default leader key +set -g prefix C-a +bind a send-prefix +bind C-a send-prefix + +# Switch ; and : +bind \; command-prompt +bind : last-pane + +# Reload the config file +unbind r +bind r source-file ~/.config/tmux/tmux.conf \; display-message "Reloaded config" + +# Allow c-a c-d to detach +bind C-d detach-client + +# Create a new session +bind C new-session +# }}} +# Windows {{{ + +# Vertical split +unbind % +bind v split-window -h + +# Horizontal split +unbind '"' # unbind horizontal split +bind s split-window -v # split pane horizontally + +# Window navigation +unbind C-j +unbind C-k +bind C-j previous-window +bind C-k next-window + +# Moving windows +unbind H +unbind L +bind -r L swap-window -t +1 +bind -r H swap-window -t -1 + +# Rotate the layout of panes +unbind C-o +bind M-v rotate-window + +# Switch layouts +unbind M-- +unbind M-| +bind M-- select-layout "even-vertical" +bind M-| select-layout "even-horizontal" + +# Screen-like rename binding +unbind A +bind A command-prompt "rename-window %%" +unbind M-a +bind M-a command-prompt -I "#S" "rename-session -- '%%'" + +# Watch/unwatch for activity +unbind ! +bind ! setw monitor-activity \; display-message "#{?monitor-activity,M,Not m}onitoring activity" + +# }}} +# Panes {{{ +# Pane navigation +unbind j +unbind h +unbind k +unbind l +bind j select-pane -D +bind h select-pane -L +bind k select-pane -U +bind l select-pane -R + +# Pane resizing +unbind C-h +unbind C-j +unbind C-k +unbind C-l +bind -r C-h resize-pane -L # "-r" means key may repeat +bind -r C-j resize-pane -D +bind -r C-k resize-pane -U +bind -r C-l resize-pane -R + +# Split & join panes +bind T break-pane +bind J command-prompt -p "join pane from:" "join-pane -s '%%'" + +# Listing panes +unbind Space +unbind S +unbind W +bind Space list-panes +bind S choose-tree -Zs +bind W choose-tree -Zw + +# Synchronize panes +unbind @ +bind @ setw synchronize-panes \; display-message "Toggle sync panes" + +# }}} +# }}} diff --git a/tmux/tmux-light.conf b/tmux/tmux-light.conf @@ -0,0 +1,139 @@ +# vim: foldmethod=marker foldlevel=0 +# Global options {{{ +# "set" == "set-option" +set -g history-limit 30000 +set -g mouse on +set -g terminal-overrides 'xterm*:smcup@:rmcup@' +set -g default-command $SHELL +set -g default-shell $SHELL +set -g default-terminal "xterm-256color" +set -g pane-active-border-style fg='#145a9c' +set -g set-titles on +set -g set-titles-string '#H:#S.#I.#P #W #T' +set -g status-bg '#ffffff' +set -g status-fg white +set -g status-interval 5 +set -g status-justify right +set -g status-left-length 40 +set -g status-left '#[fg=#228822]» #[fg=#4477ff,bold]#T#{?pane_synchronized, #[fg=#cc5500#,bold][SYNC],}#[default]' +set -g status-right '#[fg=#4477ff,bold]»» ###S %R %m-%d#(acpi | cut -d ',' -f 2)#[default]' +set -g visual-activity on +set -g base-index 1 # start numbering windows at 1, easier to reach +set -s escape-time 0 +# }}} +# Window options {{{ +setw -g mode-keys vi +setw -g monitor-activity on +setw -g xterm-keys on # for vim +setw -g aggressive-resize on +setw -g automatic-rename +setw -g mode-style bg='#d0d0d0' +setw -g window-status-current-style bg='#99ddff,bold' +setw -g window-status-activity-style bg='#e9cddf' +setw -g pane-base-index 1 # start numbering panes at 1, easier to reach +# }}} +# Key bindings {{{ +# General {{{ + +# Set the prefix +unbind C-b # unbind default leader key +set -g prefix C-a +bind a send-prefix +bind C-a send-prefix + +# Switch ; and : +bind \; command-prompt +bind : last-pane + +# Reload the config file +unbind r +bind r source-file ~/.config/tmux/tmux.conf \; display-message "Reloaded config" + +# Allow c-a c-d to detach +bind C-d detach-client + +# Create a new session +bind C new-session +# }}} +# Windows {{{ + +# Vertical split +unbind % +bind v split-window -h + +# Horizontal split +unbind '"' # unbind horizontal split +bind s split-window -v # split pane horizontally + +# Window navigation +unbind C-j +unbind C-k +bind C-j previous-window +bind C-k next-window + +# Moving windows +unbind H +unbind L +bind -r L swap-window -t +1 +bind -r H swap-window -t -1 + +# Rotate the layout of panes +unbind C-o +bind M-v rotate-window + +# Switch layouts +unbind M-- +unbind M-| +bind M-- select-layout "even-vertical" +bind M-| select-layout "even-horizontal" + +# Screen-like rename binding +unbind A +bind A command-prompt "rename-window %%" +unbind M-a +bind M-a command-prompt -I "#S" "rename-session -- '%%'" + +# Watch/unwatch for activity +unbind ! +bind ! setw monitor-activity \; display-message "#{?monitor-activity,M,Not m}onitoring activity" + +# }}} +# Panes {{{ +# Pane navigation +unbind j +unbind h +unbind k +unbind l +bind j select-pane -D +bind h select-pane -L +bind k select-pane -U +bind l select-pane -R + +# Pane resizing +unbind C-h +unbind C-j +unbind C-k +unbind C-l +bind -r C-h resize-pane -L # "-r" means key may repeat +bind -r C-j resize-pane -D +bind -r C-k resize-pane -U +bind -r C-l resize-pane -R + +# Split & join panes +bind T break-pane +bind J command-prompt -p "join pane from:" "join-pane -s '%%'" + +# Listing panes +unbind Space +unbind S +unbind W +bind Space list-panes +bind S choose-tree -Zs +bind W choose-tree -Zw + +# Synchronize panes +unbind @ +bind @ setw synchronize-panes \; display-message "Toggle sync panes" + +# }}} +# }}} diff --git a/tmux/tmux.conf b/tmux/tmux.conf @@ -1,138 +0,0 @@ -# vim: foldmethod=marker foldlevel=0 -# Global options {{{ -# "set" == "set-option" -set -g history-limit 30000 -set -g mouse on -set -g terminal-overrides 'xterm*:smcup@:rmcup@' -set -g default-command $SHELL -set -g default-shell $SHELL -set -g default-terminal "xterm-256color" -set -g pane-active-border-style fg=green -set -g set-titles on -set -g set-titles-string '#H:#S.#I.#P #W #T' -set -g status-bg '#ffffff' -set -g status-fg white -set -g status-interval 5 -set -g status-justify right -set -g status-left '#[fg=#228822]» #[fg=#4477ff,bold]#T#{?pane_synchronized, #[fg=#cc5500#,bold][SYNC],}#[default]' -set -g status-right '#[fg=#4477ff,bold]»» ###S %R %m-%d#(acpi | cut -d ',' -f 2)#[default]' -set -g visual-activity on -set -g base-index 1 # start numbering windows at 1, easier to reach -set -s escape-time 0 -# }}} -# Window options {{{ -setw -g mode-keys vi -setw -g monitor-activity on -setw -g xterm-keys on # for vim -setw -g aggressive-resize on -setw -g automatic-rename -setw -g mode-style bg='#d0d0d0' -setw -g window-status-current-style bg='#99ddff,bold' -setw -g window-status-activity-style bg='#e9cddf' -setw -g pane-base-index 1 # start numbering panes at 1, easier to reach -# }}} -# Key bindings {{{ -# General {{{ - -# Set the prefix -unbind C-b # unbind default leader key -set -g prefix C-a -bind a send-prefix -bind C-a send-prefix - -# Switch ; and : -bind \; command-prompt -bind : last-pane - -# Reload the config file -unbind r -bind r source-file ~/.config/tmux/tmux.conf \; display-message "Reloaded config" - -# Allow c-a c-d to detach -bind C-d detach-client - -# Create a new session -bind C new-session -# }}} -# Windows {{{ - -# Vertical split -unbind % -bind v split-window -h - -# Horizontal split -unbind '"' # unbind horizontal split -bind s split-window -v # split pane horizontally - -# Window navigation -unbind C-j -unbind C-k -bind C-j previous-window -bind C-k next-window - -# Moving windows -unbind H -unbind L -bind -r L swap-window -t +1 -bind -r H swap-window -t -1 - -# Rotate the layout of panes -unbind C-o -bind M-v rotate-window - -# Switch layouts -unbind M-- -unbind M-| -bind M-- select-layout "even-vertical" -bind M-| select-layout "even-horizontal" - -# Screen-like rename binding -unbind A -bind A command-prompt "rename-window %%" -unbind M-a -bind M-a command-prompt -I "#S" "rename-session -- '%%'" - -# Watch/unwatch for activity -unbind ! -bind ! setw monitor-activity \; display-message "#{?monitor-activity,M,Not m}onitoring activity" - -# }}} -# Panes {{{ -# Pane navigation -unbind j -unbind h -unbind k -unbind l -bind j select-pane -D -bind h select-pane -L -bind k select-pane -U -bind l select-pane -R - -# Pane resizing -unbind C-h -unbind C-j -unbind C-k -unbind C-l -bind -r C-h resize-pane -L # "-r" means key may repeat -bind -r C-j resize-pane -D -bind -r C-k resize-pane -U -bind -r C-l resize-pane -R - -# Split & join panes -bind T break-pane -bind J command-prompt -p "join pane from:" "join-pane -s '%%'" - -# Listing panes -unbind Space -unbind S -unbind W -bind Space list-panes -bind S choose-tree -Zs -bind W choose-tree -Zw - -# Synchronize panes -unbind @ -bind @ setw synchronize-panes \; display-message "Toggle sync panes" - -# }}} -# }}}