Compare commits
No commits in common. "0fc1fdb82ebc56ab209b00bbaf09a6e7acd69839" and "8b026796e158086eaa6f082047e7f60d913c967e" have entirely different histories.
0fc1fdb82e
...
8b026796e1
1 changed files with 36 additions and 39 deletions
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/bash
|
|
||||||
# If changes made here does not take effect, then try to re-create the tmux session to force reload.
|
# If changes made here does not take effect, then try to re-create the tmux session to force reload.
|
||||||
|
|
||||||
# copied from catppuccin/tmux Mocha https://github.com/catppuccin/tmux/blob/main/catppuccin-mocha.tmuxtheme
|
|
||||||
thm_bg="#1e1e2e"
|
thm_bg="#1e1e2e"
|
||||||
thm_fg="#cdd6f4"
|
thm_fg="#cdd6f4"
|
||||||
thm_cyan="#89dceb"
|
thm_cyan="#89dceb"
|
||||||
|
@ -16,16 +14,15 @@ thm_blue="#89b4fa"
|
||||||
thm_orange="#fab387"
|
thm_orange="#fab387"
|
||||||
thm_black4="#585b70"
|
thm_black4="#585b70"
|
||||||
|
|
||||||
wedge_bg=terminal
|
|
||||||
wedge_left="█"
|
wedge_left="█"
|
||||||
wedge_right="█"
|
wedge_right="█"
|
||||||
|
|
||||||
wedge() {
|
wedge() {
|
||||||
printf '%s' "#[fg=$2,bg=$wedge_bg]" \
|
printf '%s' "#[fg=$2,bg=$thm_bg]" \
|
||||||
"$wedge_left" \
|
"$wedge_left" \
|
||||||
"#[fg=$thm_bg,bg=$2]" \
|
"#[fg=$thm_bg,bg=$2]" \
|
||||||
"$1" \
|
"$1" \
|
||||||
"#[fg=$2,bg=$wedge_bg]" \
|
"#[fg=$2,bg=$thm_bg]" \
|
||||||
"$wedge_right"
|
"$wedge_right"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,7 +38,7 @@ else
|
||||||
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="❯"
|
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN="❯"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR:-$wedge_bg}
|
TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_BACKGROUND_COLOR:-$thm_bg}
|
||||||
TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR:-$thm_fg}
|
TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR=${TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR:-$thm_fg}
|
||||||
|
|
||||||
TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR=${TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR:-$TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}
|
TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR=${TMUX_POWERLINE_DEFAULT_LEFTSIDE_SEPARATOR:-$TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD}
|
||||||
|
@ -50,17 +47,17 @@ TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SEPARATOR=${TMUX_POWERLINE_DEFAULT_RIGHTSIDE_SE
|
||||||
# See man tmux.conf for additional formatting options for the status line.
|
# See man tmux.conf for additional formatting options for the status line.
|
||||||
# The `format regular` and `format inverse` functions are provided as conveniences
|
# The `format regular` and `format inverse` functions are provided as conveniences
|
||||||
|
|
||||||
if [[ -z $TMUX_POWERLINE_WINDOW_STATUS_CURRENT ]]; then
|
if [ -z $TMUX_POWERLINE_WINDOW_STATUS_CURRENT ]; then
|
||||||
TMUX_POWERLINE_WINDOW_STATUS_CURRENT=" #W $(wedge "#I" "$thm_orange")"
|
TMUX_POWERLINE_WINDOW_STATUS_CURRENT=" #W $(wedge "#I" "$thm_orange")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $TMUX_POWERLINE_WINDOW_STATUS_STYLE ]]; then
|
if [ -z $TMUX_POWERLINE_WINDOW_STATUS_STYLE ]; then
|
||||||
TMUX_POWERLINE_WINDOW_STATUS_STYLE=(
|
TMUX_POWERLINE_WINDOW_STATUS_STYLE=(
|
||||||
"$(format regular)"
|
"$(format regular)"
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $TMUX_POWERLINE_WINDOW_STATUS_FORMAT ]]; then
|
if [ -z $TMUX_POWERLINE_WINDOW_STATUS_FORMAT ]; then
|
||||||
TMUX_POWERLINE_WINDOW_STATUS_FORMAT=" #W $(wedge "#I" "$thm_blue")"
|
TMUX_POWERLINE_WINDOW_STATUS_FORMAT=" #W $(wedge "#I" "$thm_blue")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -91,40 +88,40 @@ fi
|
||||||
# separator_foreground_color options must still be specified so that appropriate index
|
# 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
|
# of options to support the spacing_disable and separator_disable features can be used
|
||||||
|
|
||||||
if [[ -z $TMUX_POWERLINE_LEFT_STATUS_SEGMENTS ]]; then
|
if [ -z $TMUX_POWERLINE_LEFT_STATUS_SEGMENTS ]; then
|
||||||
TMUX_POWERLINE_LEFT_STATUS_SEGMENTS=(
|
TMUX_POWERLINE_LEFT_STATUS_SEGMENTS=(
|
||||||
"mode_indicator 33"
|
"mode_indicator 33" \
|
||||||
#"tmux_session_info 148 234"
|
#"tmux_session_info 148 234" \
|
||||||
#"hostname 33 0"
|
#"hostname 33 0" \
|
||||||
#"ifstat 30 255"
|
#"ifstat 30 255" \
|
||||||
#"ifstat_sys 30 255"
|
#"ifstat_sys 30 255" \
|
||||||
#"lan_ip 24 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_THIN}"
|
#"lan_ip 24 255 ${TMUX_POWERLINE_SEPARATOR_RIGHT_THIN}" \
|
||||||
#"wan_ip 24 255"
|
#"wan_ip 24 255" \
|
||||||
"vcs_branch $thm_gray $thm_blue"
|
"vcs_branch $thm_gray $thm_blue" \
|
||||||
#"vcs_compare 60 255"
|
#"vcs_compare 60 255" \
|
||||||
#"vcs_staged 64 255"
|
#"vcs_staged 64 255" \
|
||||||
#"vcs_modified 9 255"
|
#"vcs_modified 9 255" \
|
||||||
#"vcs_others 245 0"
|
#"vcs_others 245 0" \
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS ]]; then
|
if [ -z $TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS ]; then
|
||||||
TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS=(
|
TMUX_POWERLINE_RIGHT_STATUS_SEGMENTS=(
|
||||||
#"earthquake 3 0"
|
#"earthquake 3 0" \
|
||||||
"pwd $thm_pink $thm_bg"
|
"pwd $thm_pink $thm_bg" \
|
||||||
#"macos_notification_count 29 255"
|
#"macos_notification_count 29 255" \
|
||||||
#"mailcount 9 255"
|
#"mailcount 9 255" \
|
||||||
"now_playing 234 37"
|
"now_playing 234 37" \
|
||||||
#"cpu 240 136"
|
#"cpu 240 136" \
|
||||||
#"load 237 167"
|
#"load 237 167" \
|
||||||
#"tmux_mem_cpu_load 234 136"
|
#"tmux_mem_cpu_load 234 136" \
|
||||||
"battery 137 127"
|
"battery 137 127" \
|
||||||
#"weather 37 255"
|
#"weather 37 255" \
|
||||||
#"rainbarf 0 ${TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR}"
|
#"rainbarf 0 ${TMUX_POWERLINE_DEFAULT_FOREGROUND_COLOR}" \
|
||||||
#"xkb_layout 125 117"
|
#"xkb_layout 125 117" \
|
||||||
#"date_day 235 136"
|
#"date_day 235 136" \
|
||||||
#"date 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}"
|
#"date 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \
|
||||||
#"time 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}"
|
#"time 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \
|
||||||
#"utc_time 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}"
|
#"utc_time 235 136 ${TMUX_POWERLINE_SEPARATOR_LEFT_THIN}" \
|
||||||
)
|
)
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue