batipanel 0.4.24 → 0.4.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/config/tmux-powerline.conf +4 -4
- package/lib/themes-bash.sh +5 -1
- package/lib/themes-tmux.sh +4 -4
- package/package.json +1 -1
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.25
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# powerline status bar (Nerd Font override)
|
|
2
|
-
set -g status-left '#[fg=colour232,bg=colour2,bold] #S #[fg=colour2,bg=colour234,nobold] '
|
|
3
|
-
set -g status-right '#[fg=colour240,bg=colour234]
|
|
4
|
-
setw -g window-status-format '#[fg=colour234,bg=colour238]
|
|
5
|
-
setw -g window-status-current-format '#[fg=colour234,bg=colour33]
|
|
2
|
+
set -g status-left '#[fg=colour232,bg=colour2,bold] #S #[fg=colour2,bg=colour234,nobold] '
|
|
3
|
+
set -g status-right '#[fg=colour240,bg=colour234]#[fg=colour249,bg=colour240] #{session_windows}W #{window_panes}P #[fg=colour2,bg=colour240]#[fg=colour232,bg=colour2,bold] %H:%M %m-%d '
|
|
4
|
+
setw -g window-status-format '#[fg=colour234,bg=colour238]#[fg=colour249,bg=colour238] #I #W #[fg=colour238,bg=colour234]'
|
|
5
|
+
setw -g window-status-current-format '#[fg=colour234,bg=colour33]#[fg=colour255,bg=colour33,bold] #I #W #[fg=colour33,bg=colour234]'
|
package/lib/themes-bash.sh
CHANGED
|
@@ -121,8 +121,12 @@ _generate_themed_prompt() {
|
|
|
121
121
|
# detect glyph support: Nerd Font terminals get powerline arrows, others get ASCII
|
|
122
122
|
local use_powerline=0
|
|
123
123
|
case "${TERM_PROGRAM:-}" in
|
|
124
|
-
iTerm.app|WezTerm|kitty) use_powerline=1 ;;
|
|
124
|
+
iTerm.app|WezTerm|kitty|Hyper|Alacritty|vscode) use_powerline=1 ;;
|
|
125
125
|
esac
|
|
126
|
+
# inside tmux, TERM_PROGRAM is not passed through;
|
|
127
|
+
# batipanel's tmux status bar always uses powerline glyphs,
|
|
128
|
+
# so the terminal must support them — enable for bash prompt too
|
|
129
|
+
[[ -n "${TMUX:-}" ]] && use_powerline=1
|
|
126
130
|
[[ "${BATIPANEL_ICONS:-0}" == "1" ]] && use_powerline=1
|
|
127
131
|
|
|
128
132
|
local sep_char git_icon_line
|
package/lib/themes-tmux.sh
CHANGED
|
@@ -24,12 +24,12 @@ _generate_theme_conf() {
|
|
|
24
24
|
|
|
25
25
|
# status bar
|
|
26
26
|
set -g status-style "bg=${status_bg},fg=${status_fg}"
|
|
27
|
-
set -g status-left '#[fg=${accent_fg},bg=${accent},bold] #S #[fg=${accent},bg=${status_bg},nobold] '
|
|
28
|
-
set -g status-right '#[fg=${border},bg=${status_bg}]
|
|
27
|
+
set -g status-left '#[fg=${accent_fg},bg=${accent},bold] #S #[fg=${accent},bg=${status_bg},nobold] '
|
|
28
|
+
set -g status-right '#[fg=${border},bg=${status_bg}]#[fg=${win_fg},bg=${border}] #{session_windows}W #{window_panes}P #[fg=${accent},bg=${border}]#[fg=${accent_fg},bg=${accent},bold] %H:%M %m-%d '
|
|
29
29
|
|
|
30
30
|
# window tabs
|
|
31
|
-
setw -g window-status-format '#[fg=${status_bg},bg=${win_bg}]
|
|
32
|
-
setw -g window-status-current-format '#[fg=${status_bg},bg=${win_active_bg}]
|
|
31
|
+
setw -g window-status-format '#[fg=${status_bg},bg=${win_bg}]#[fg=${win_fg},bg=${win_bg}] #I #W #[fg=${win_bg},bg=${status_bg}]'
|
|
32
|
+
setw -g window-status-current-format '#[fg=${status_bg},bg=${win_active_bg}]#[fg=${win_active_fg},bg=${win_active_bg},bold] #I #W #[fg=${win_active_bg},bg=${status_bg}]'
|
|
33
33
|
|
|
34
34
|
# pane borders
|
|
35
35
|
set -g pane-border-style "fg=${border}"
|
package/package.json
CHANGED