From 378abfe896ed885b008c85685f0a3fd8a7cf4504 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 6 Jun 2024 22:53:28 +0300 Subject: [PATCH] feat(tmux): tmux-dark-notify + themes --- .gitmodules | 3 +++ add-submodules.sh | 2 ++ config/tmux/plugins/tmux-dark-notify | 1 + config/tmux/theme-dark.conf | 5 +++++ config/tmux/theme-light.conf | 5 +++++ config/tmux/tmux.conf | 11 +++++++---- 6 files changed, 23 insertions(+), 4 deletions(-) create mode 160000 config/tmux/plugins/tmux-dark-notify create mode 100644 config/tmux/theme-dark.conf create mode 100644 config/tmux/theme-light.conf diff --git a/.gitmodules b/.gitmodules index 6cede69..00912c7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -61,3 +61,6 @@ [submodule "nvim-kickstart"] path = config/nvim-kickstart url = https://github.com/ivuorinen/kickstart.nvim +[submodule "tmux/tmux-dark-notify"] + path = config/tmux/plugins/tmux-dark-notify + url = https://github.com/erikw/tmux-dark-notify.git diff --git a/add-submodules.sh b/add-submodules.sh index fa2f249..50ee98b 100755 --- a/add-submodules.sh +++ b/add-submodules.sh @@ -38,6 +38,8 @@ git submodule add --name tmux/tmux-yank \ -f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank git submodule add --name tmux/tmux-current-pane-hostname \ -f https://github.com/soyuka/tmux-current-pane-hostname.git config/tmux/plugins/tmux-current-pane-hostname +git submodule add --name tmux/tmux-dark-notify \ + -f https://github.com/erikw/tmux-dark-notify.git config/tmux/plugins/tmux-dark-notify # Takes submodules and sets them to ignore all changes for MODULE in $(git config --file .gitmodules --get-regexp path | awk '{ print $2 }'); do diff --git a/config/tmux/plugins/tmux-dark-notify b/config/tmux/plugins/tmux-dark-notify new file mode 160000 index 0000000..4a205f8 --- /dev/null +++ b/config/tmux/plugins/tmux-dark-notify @@ -0,0 +1 @@ +Subproject commit 4a205f86b64cfd45448be791ce133172c3f11c56 diff --git a/config/tmux/theme-dark.conf b/config/tmux/theme-dark.conf new file mode 100644 index 0000000..f9895a5 --- /dev/null +++ b/config/tmux/theme-dark.conf @@ -0,0 +1,5 @@ +set-option -g status-style 'bg=default,fg=#cad3f5' +set-window-option -g window-status-style 'fg=#cad3f5,bg=default' +set-window-option -g window-status-current-style 'fg=#cad3f5,bg=#24273a' +set -g message-style 'fg=#c6a0f6 bg=#24273a bold' + diff --git a/config/tmux/theme-light.conf b/config/tmux/theme-light.conf new file mode 100644 index 0000000..b6eed40 --- /dev/null +++ b/config/tmux/theme-light.conf @@ -0,0 +1,5 @@ +set-option -g status-style 'bg=#eff1f5,fg=#4c4f69' +set-window-option -g window-status-style 'fg=#4c4f69,bg=#eff1f5' +set-window-option -g window-status-current-style 'fg=#4c4f69,bg=#7aa2f7' +set -g message-style 'fg=#8839ef bg=#e6e9ef bold' # fg magenta, bg black + diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 46e7701..9660018 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -68,6 +68,9 @@ bind p paste-buffer # │ Settings │ # ╰──────────────────────────────────────────────────────────╯ +set -g default-terminal "tmux-256color" +set -ag terminal-overrides ",xterm-256color:RGB" + # Setting status on set -g status "on" @@ -111,17 +114,16 @@ set -g status-left-length "0" set -g status-right-length "30" set-option -g status-position "bottom" -set-option -g status-style 'bg=default,fg=#ffffff' set-option -g status-justify left set-option -g status-left '' -set-window-option -g window-status-style 'fg=#ffffff,bg=default' set-option -g window-status-format ' #I:#W ' -set-window-option -g window-status-current-style 'fg=#111111,bg=#7aa2f7' set-option -g window-status-current-format ' #I:#W#{?window_zoomed_flag,  , } ' set-option -g status-right "#{hostname_short}/#S #{tmux_mode_indicator}" -set -g message-style 'fg=colour2 bg=colour0 bold' +# https://github.com/erikw/tmux-dark-notify +set -g @dark-notify-theme-path-light '~/.dotfiles/config/tmux/theme-light.conf' +set -g @dark-notify-theme-path-dark '~/.dotfiles/config/tmux/theme-dark.conf' # ╭──────────────────────────────────────────────────────────╮ # │ Plugins related configurations │ @@ -169,4 +171,5 @@ run-shell ~/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmu run-shell ~/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux run-shell ~/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux run-shell ~/.dotfiles/config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux +run-shell ~/.dotfiles/config/tmux/plugins/tmux-dark-notify/main.tmux