From f863305ef801b4e6852b6a3c33d155a249656dcb Mon Sep 17 00:00:00 2001 From: August Feng Date: Sat, 24 Jul 2021 11:03:21 -0400 Subject: [PATCH] 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. --- scripts/dracula.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 3541232..cba4922 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -187,14 +187,12 @@ main() fi 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]} 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 done - - tmux set-option -ga status-right " " # Window option if $show_powerline; then @@ -210,4 +208,3 @@ main() # run main function main -