diff --git a/README.md b/README.md index 32e2c3b..ae9c6aa 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,8 @@ Based on the Nord color pa - [Activation](#activation) - [Features](#features) - [Configuration](#configuration) + - [Disable status content](#disable-status-content) + - [No patched fonts](#no-patched-fonts) - [Plugin Support](#plugin-support) - [tmux-prefix-highlight](#tmux-prefix-highlight) - [Development](#development) @@ -80,12 +82,28 @@ tmux source-file `~/.tmux.conf`

Fits to many terminal applications based on Nord

## Configuration -This theme has default status bar content (including the powerline-styled -background arrows). You can disable the included status bar content: + +### Disable status content + +By default, this theme provides status bar content (including the powerline-styled +background arrows). + +The status content can be disabled by setting the `@nord_tmux_show_status_content` to `0`: + ```sh set -g @nord_tmux_show_status_content "0" ``` +#### No patched fonts + +The default status content makes use of patched fonts which can be disabled by setting the `@nord_tmux_no_patched_font` variable to `1`: + +```sh +set -g @nord_tmux_no_patched_font "1" +``` + +![](https://raw.githubusercontent.com/arcticicestudio/nord-tmux/develop/src/assets/scrot-config-status-content-no-patched-font.png) + ## Plugin Support ### [tmux-prefix-highlight](https://github.com/tmux-plugins/tmux-prefix-highlight) Supports the *prefix*- and `copy-mode` status indicator. diff --git a/nord.tmux b/nord.tmux index ed33cb3..35d654f 100755 --- a/nord.tmux +++ b/nord.tmux @@ -16,12 +16,15 @@ NORD_TMUX_COLOR_THEME_FILE=src/nord.conf NORD_TMUX_VERSION=0.2.0 NORD_TMUX_STATUS_CONTENT_FILE="src/nord-status-content.conf" +NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE="src/nord-status-content-no-patched-font.conf" NORD_TMUX_STATUS_CONTENT_OPTION="@nord_tmux_show_status_content" +NORD_TMUX_NO_PATCHED_FONT_OPTION="@nord_tmux_no_patched_font" _current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" __cleanup() { unset -v NORD_TMUX_COLOR_THEME_FILE NORD_TMUX_VERSION - unset -v NORD_TMUX_STATUS_CONTENT_FILE NORD_TMUX_STATUS_CONTENT_OPTION + unset -v NORD_TMUX_STATUS_CONTENT_FILE NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE + unset -v NORD_TMUX_STATUS_CONTENT_OPTION NORD_TMUX_NO_PATCHED_FONT_OPTION unset -v _current_dir unset -f __load __cleanup } @@ -30,9 +33,15 @@ __load() { tmux source-file "$_current_dir/$NORD_TMUX_COLOR_THEME_FILE" local status_content=$(tmux show-option -gqv "$NORD_TMUX_STATUS_CONTENT_OPTION") + local no_patched_font=$(tmux show-option -gqv "$NORD_TMUX_NO_PATCHED_FONT_OPTION") + if [ "$status_content" != "0" ]; then - tmux source-file "$_current_dir/$NORD_TMUX_STATUS_CONTENT_FILE" - fi; + if [ "$no_patched_font" != "1" ]; then + tmux source-file "$_current_dir/$NORD_TMUX_STATUS_CONTENT_FILE" + else + tmux source-file "$_current_dir/$NORD_TMUX_STATUS_CONTENT_NO_PATCHED_FONT_FILE" + fi + fi } __load diff --git a/src/assets/scrot-config-status-content-no-patched-font.png b/src/assets/scrot-config-status-content-no-patched-font.png new file mode 100755 index 0000000..9abc09c Binary files /dev/null and b/src/assets/scrot-config-status-content-no-patched-font.png differ diff --git a/src/nord-status-content-no-patched-font.conf b/src/nord-status-content-no-patched-font.conf new file mode 100644 index 0000000..fc80dcd --- /dev/null +++ b/src/nord-status-content-no-patched-font.conf @@ -0,0 +1,25 @@ +# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +# title Status Content - No Patched Font + +# project nord-tmux + +# repository https://github.com/arcticicestudio/nord-tmux + +# author Arctic Ice Studio + +# email development@arcticicestudio.com + +# copyright Copyright (C) 2017 + +# +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +#+----------------+ +#+ Plugin Support + +#+----------------+ +#+--- tmux-prefix-highlight ---+ +set -g @prefix_highlight_copy_mode_attr "fg=black,bg=brightcyan" + +#+--------+ +#+ Status + +#+--------+ +#+--- Bars ---+ +set -g status-left "#[fg=black,bg=blue,bold] #S " +set -g status-right "#{prefix_highlight}#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]|#[fg=white,bg=brightblack] %H:%M #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore] #[fg=black,bg=cyan,bold] #H " + +#+--- Windows ---+ +set -g window-status-format " #[fg=white,bg=brightblack]#I #[fg=white,bg=brightblack]#W #F" +set -g window-status-current-format " #[fg=black,bg=cyan]#I#[fg=black,bg=cyan,nobold,noitalics,nounderscore] #[fg=black,bg=cyan]#W #F" +set -g window-status-separator "" diff --git a/src/nord-status-content.conf b/src/nord-status-content.conf index 179f1a0..72a2399 100644 --- a/src/nord-status-content.conf +++ b/src/nord-status-content.conf @@ -1,7 +1,6 @@ # +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -# title Nord tmux + +# title Status Content + # project nord-tmux + -# version 0.2.0 + # repository https://github.com/arcticicestudio/nord-tmux + # author Arctic Ice Studio + # email development@arcticicestudio.com + @@ -13,11 +12,13 @@ #+--- tmux-prefix-highlight ---+ set -g @prefix_highlight_output_prefix "#[fg=brightcyan]#[bg=black]#[nobold]#[noitalics]#[nounderscore]#[bg=brightcyan]#[fg=black]" set -g @prefix_highlight_output_suffix "" +set -g @prefix_highlight_copy_mode_attr "fg=brightcyan,bg=black,bold" #+--------+ #+ Status + #+--------+ #+--- Bars ---+ +#set -g status-left "#[fg=black,bg=blue,bold] #S#[fg=blue,bg=black,nobold,noitalics,nounderscore]" set -g status-left "#[fg=black,bg=blue,bold] #S#[fg=blue,bg=black,nobold,noitalics,nounderscore]" set -g status-right "#{prefix_highlight}#[fg=brightblack,bg=black,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %Y-%m-%d #[fg=white,bg=brightblack,nobold,noitalics,nounderscore]#[fg=white,bg=brightblack] %H:%M #[fg=cyan,bg=brightblack,nobold,noitalics,nounderscore]#[fg=black,bg=cyan,bold] #H" diff --git a/src/nord.conf b/src/nord.conf index dc8d913..cf1e2c6 100644 --- a/src/nord.conf +++ b/src/nord.conf @@ -13,7 +13,6 @@ #+--- tmux-prefix-highlight ---+ set -g @prefix_highlight_fg black set -g @prefix_highlight_bg brightcyan -set -g @prefix_highlight_copy_mode_attr "fg=brightcyan,bg=black,bold" #+---------+ #+ Options +