Fix spacing between status elements
Only the most right status element seemed to be padded with a space, for the non-powerline configuration. The powerline configuration seems to embed padding by the seperator, and thus requires a pad on the last element. This commit moves the padding next to the seperator to the script output instead. Remove trailing newline Uniformalizes to the other scripts.
This commit is contained in:
parent
9705766ba2
commit
f863305ef8
1 changed files with 2 additions and 5 deletions
|
@ -187,14 +187,12 @@ main()
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if $show_powerline; then
|
if $show_powerline; then
|
||||||
tmux set-option -ga status-right "#[fg=${!colors[0]},bg=${powerbg},nobold,nounderscore,noitalics] ${right_sep}#[fg=${!colors[1]},bg=${!colors[0]}] $script"
|
tmux set-option -ga status-right "#[fg=${!colors[0]},bg=${powerbg},nobold,nounderscore,noitalics]${right_sep}#[fg=${!colors[1]},bg=${!colors[0]}] $script "
|
||||||
powerbg=${!colors[0]}
|
powerbg=${!colors[0]}
|
||||||
else
|
else
|
||||||
tmux set-option -ga status-right "#[fg=${!colors[1]},bg=${!colors[0]}] $script"
|
tmux set-option -ga status-right "#[fg=${!colors[1]},bg=${!colors[0]}] $script "
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
tmux set-option -ga status-right " "
|
|
||||||
|
|
||||||
# Window option
|
# Window option
|
||||||
if $show_powerline; then
|
if $show_powerline; then
|
||||||
|
@ -210,4 +208,3 @@ main()
|
||||||
|
|
||||||
# run main function
|
# run main function
|
||||||
main
|
main
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue