From 6905665f7f08a144ff9f6334514ca57f430313e3 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Mon, 21 Aug 2023 15:20:34 -0600 Subject: change to tmux-powerline, change to nord theme --- .config/tmux-powerline/themes/nord.sh | 101 ++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 .config/tmux-powerline/themes/nord.sh (limited to '.config/tmux-powerline/themes') diff --git a/.config/tmux-powerline/themes/nord.sh b/.config/tmux-powerline/themes/nord.sh new file mode 100644 index 0000000..efdd8f7 --- /dev/null +++ b/.config/tmux-powerline/themes/nord.sh @@ -0,0 +1,101 @@ +# Default Theme + +if patched_font_in_use; then + TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="" + TMUX_POWERLINE_SEPARATOR_LEFT_THIN="" + TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="" + TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="" +else + TMUX_POWERLINE_SEPARATOR_LEFT_BOLD="◀" + TMUX_POWERLINE_SEPARATOR_LEFT_THIN="❮" + TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD="▶" + TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="❯" +fi + +TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR:-'black'} +TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR:-'white'} + +TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR=${TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR:-$TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} +TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR=${TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR:-$TMUX_POWERLINE_SEPARATOR_LEFT_BOLD} + +# See man tmux.conf for additional formatting options for the status line. +# The `format regular` and `format inverse` functions are provided as conveinences + +if [ -z $TMUX_POWERLINE_WINDOW_STATUS_CURRENT ]; then + TMUX_POWERLINE_WINDOW_STATUS_CURRENT=( + "#[$(format inverse)]" \ + "$TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR" \ + " #I#F " \ + "$TMUX_POWERLINE_SEPARATOR_RIGHT_THIN" \ + " #W " \ + "#[$(format regular)]" \ + "$TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR" + ) +fi + +if [ -z $TMUX_POWERLINE_WINDOW_STATUS_STYLE ]; then + TMUX_POWERLINE_WINDOW_STATUS_STYLE=( + "$(format regular)" + ) +fi + +if [ -z $TMUX_POWERLINE_WINDOW_STATUS_FORMAT ]; then + TMUX_POWERLINE_WINDOW_STATUS_FORMAT=( + "#[$(format regular)]" \ + " #I#{?window_flags,#F, } " \ + "$TMUX_POWERLINE_SEPARATOR_RIGHT_THIN" \ + " #W " + ) +fi + +# Format: segment_name background_color foreground_color [non_default_separator] [separator_background_color] [separator_foreground_color] [spacing_disable] [separator_disable] +# +# * background_color and foreground_color. Formats: +# * Named colors (chech man page of tmux for complete list) e.g. black, red, green, yellow, blue, magenta, cyan, white +# * a hexadecimal RGB string e.g. #ffffff +# * 'default' for the defalt tmux color. +# * non_default_separator - specify an alternative character for this segment's separator +# * separator_background_color - specify a unique background color for the separator +# * separator_foreground_color - specify a unique foreground color for the separator +# * spacing_disable - remove space on left, right or both sides of the segment: +# * "left_disable" - disable space on the left +# * "right_disable" - disable space on the right +# * "both_disable" - disable spaces on both sides +# * - any other character/string produces no change to default behavior (eg "none", "X", etc.) +# +# * separator_disable - disables drawing a separator on this segment, very useful for segments +# with dynamic background colours (eg tmux_mem_cpu_load): +# * "separator_disable" - disables the separator +# * - any other character/string produces no change to default behavior +# +# Example segment with separator disabled and right space character disabled: +# "hostname 33 0 {TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD} 33 0 right_disable separator_disable" +# +# Note that although redundant the non_default_separator, separator_background_color and +# separator_foreground_color options must still be specified so that appropriate index +# of options to support the spacing_disable and separator_disable features can be used + +if [ -z $TMUX_POWERLINE_LEFT_STATUS_SEGMENTS ]; then + TMUX_POWERLINE_LEFT_STATUS_SEGMENTS=( + "tmux_session_info green black" \ + "hostname blue white" \ + "vcs_branch red white" \ + #"vcs_compare 60 255" \ + #"vcs_staged 64 255" \ + #"vcs_modified 9 255" \ + #"vcs_others 245 0" \ + ) +fi + +if [ -z $TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS ]; then + TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS=( + "pwd magenta white" \ + #"now_playing 234 37" \ + #"cpu 240 136" \ + #"load 237 167" \ + #"tmux_mem_cpu_load 234 136" \ + "date_day" \ + "date black white ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \ + "time black white ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \ + ) +fi -- cgit v1.2.3-54-g00ecf