From eff824c8a917aa95928f53c0a7ca602fd2e6d163 Mon Sep 17 00:00:00 2001 From: Martin Bauer Date: Tue, 14 Jun 2022 22:28:56 +0200 Subject: [PATCH] dracula theme everywhere + tmux theme fixes --- README.md | 1 - buildenv.sh | 7 ++-- config_in/alacritty/alacritty.yml | 28 ++++++++++++++ config_in/alacritty/dracula.yml | 61 +++++++++++++++++++++++++++++++ config_in/fish/config.fish | 2 +- config_in/nvim/init.vim | 11 +++--- config_in/tmux/tmux.conf | 18 ++++++--- 7 files changed, 112 insertions(+), 16 deletions(-) create mode 100644 config_in/alacritty/alacritty.yml create mode 100644 config_in/alacritty/dracula.yml diff --git a/README.md b/README.md index 1ad10d8..a5be712 100644 --- a/README.md +++ b/README.md @@ -19,4 +19,3 @@ TODO: - tree - egrep - ultimate plumer - diff --git a/buildenv.sh b/buildenv.sh index 63964fe..cfa8626 100755 --- a/buildenv.sh +++ b/buildenv.sh @@ -124,11 +124,10 @@ cp -r ${CONFIG_IN}/tmux ${XDG_CONFIG_HOME} export TERMINFO=${MB_ENV_BASE}/share/terminfo -printf "${White} Installing tpm package manager...${Color_Off}\n" -cd $XDG_DATA_HOME +printf "${White} Installing tmux plugins...${Color_Off}\n" +cd $XDG_CONFIG_HOME mkdir -p tmux/plugins -git clone https://github.com/tmux-plugins/tpm tmux/plugins/tpm &> /dev/null -./tmux/plugins/tpm/bin/install_plugins &> /dev/null +git clone https://github.com/dracula/tmux.git tmux/plugins/dracula-tmux &> /dev/null # -------------------------------------------- tmux ------------------------------------------------------------ diff --git a/config_in/alacritty/alacritty.yml b/config_in/alacritty/alacritty.yml new file mode 100644 index 0000000..a3c3598 --- /dev/null +++ b/config_in/alacritty/alacritty.yml @@ -0,0 +1,28 @@ +import: + - ~/.config/alacritty/dracula.yml + +font: + # Normal (roman) font face + normal: + family: Hack Nerd Font Mono + style: Regular + + # Bold font face + bold: + family: Hack Nerd Font Mono + style: Bold + + # Italic font face + italic: + family: Hack Nerd Font Mono + style: Italic + + # Bold italic font face + bold_italic: + family: Hack Nerd Font Mono + style: Bold Italic + + # Point size + size: 10 + + diff --git a/config_in/alacritty/dracula.yml b/config_in/alacritty/dracula.yml new file mode 100644 index 0000000..afafffa --- /dev/null +++ b/config_in/alacritty/dracula.yml @@ -0,0 +1,61 @@ +# Dracula theme for Alacritty +# https://draculatheme.com/alacritty +# +# Color palette +# https://spec.draculatheme.com +# +# Template +# https://github.com/alacritty/alacritty/blob/master/alacritty.yml + +colors: + primary: + background: '#282a36' + foreground: '#f8f8f2' + bright_foreground: '#ffffff' + cursor: + text: CellBackground + cursor: CellForeground + vi_mode_cursor: + text: CellBackground + cursor: CellForeground + search: + matches: + foreground: '#44475a' + background: '#50fa7b' + focused_match: + foreground: '#44475a' + background: '#ffb86c' + bar: + background: '#282a36' + foreground: '#f8f8f2' + hints: + start: + foreground: '#282a36' + background: '#f1fa8c' + end: + foreground: '#f1fa8c' + background: '#282a36' + line_indicator: + foreground: None + background: None + selection: + text: CellForeground + background: '#44475a' + normal: + black: '#21222c' + red: '#ff5555' + green: '#50fa7b' + yellow: '#f1fa8c' + blue: '#bd93f9' + magenta: '#ff79c6' + cyan: '#8be9fd' + white: '#f8f8f2' + bright: + black: '#6272a4' + red: '#ff6e6e' + green: '#69ff94' + yellow: '#ffffa5' + blue: '#d6acff' + magenta: '#ff92df' + cyan: '#a4ffff' + white: '#ffffff' diff --git a/config_in/fish/config.fish b/config_in/fish/config.fish index 1531f73..a5d4d53 100644 --- a/config_in/fish/config.fish +++ b/config_in/fish/config.fish @@ -11,7 +11,7 @@ end set -x VIRTUAL_ENV_DISABLE_PROMPT 1 -set -x theme_color_scheme nord +set -x theme_color_scheme dracula set -x theme_nerd_fonts yes set -x fish_prompt_pwd_dir_length 0 diff --git a/config_in/nvim/init.vim b/config_in/nvim/init.vim index 6101cf6..c913c24 100644 --- a/config_in/nvim/init.vim +++ b/config_in/nvim/init.vim @@ -9,8 +9,9 @@ set number " turn on line numbers " ----------------------------- Plugins ------------------------------ call plug#begin() -Plug 'justinmk/vim-sneak' " s two character search -Plug 'easymotion/vim-easymotion' " \\ w to jump around quickly -Plug 'sheerun/vim-polyglot' " syntax highlighting for many langs -Plug 'junegunn/fzf' " fuzzy finder -call plug#end() \ No newline at end of file +Plug 'justinmk/vim-sneak' " s two character search +Plug 'easymotion/vim-easymotion' " \\ w to jump around quickly +Plug 'sheerun/vim-polyglot' " syntax highlighting for many langs +Plug 'junegunn/fzf' " fuzzy finder +Plug 'dracula/vim', { 'as': 'dracula' } " theme +call plug#end() diff --git a/config_in/tmux/tmux.conf b/config_in/tmux/tmux.conf index 0abf31e..909f893 100644 --- a/config_in/tmux/tmux.conf +++ b/config_in/tmux/tmux.conf @@ -43,6 +43,7 @@ bind -T copy-mode-vi \} { send-keys -X search-forward " " send-keys -X end-of-line send-keys -X search-backward " " + send-keys -X stop-selection send-keys -X cursor-right } @@ -51,13 +52,20 @@ bind -T copy-mode-vi \{ { send-keys -X search-backward " " send-keys -X end-of-line send-keys -X search-backward " " + send-keys -X stop-selection send-keys -X cursor-right } +bind \} copy-mode +bind \{ copy-mode -# Package manager -set -g @plugin 'tmux-plugins/tpm' -set -g @plugin 'tmux-plugins/tmux-prefix-highlight' -set -g @plugin "arcticicestudio/nord-tmux" +# Theme config +set -g @dracula-plugins "cpu-usage gpu-usage ram-usage time" +set -g @dracula-show-powerline true +set -g @dracula-day-month true +set -g @dracula-git-disable-status true +set -g @dracula-left-icon-padding 1 +set -g @dracula-show-left-icon session +set -g @dracula-show-timezone false -run "$XDG_DATA_HOME/tmux/plugins/tpm/tpm' +run "$XDG_CONFIG_HOME/tmux/plugins/dracula-tmux/dracula.tmux"