From 46466247066544552a9218989ed2015c2a45d541 Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 31 May 2020 16:24:54 -0700 Subject: [PATCH 1/4] extra space left side not necessary for non powerline --- scripts/dracula.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dracula.sh b/scripts/dracula.sh index 275428f..5cd2155 100755 --- a/scripts/dracula.sh +++ b/scripts/dracula.sh @@ -123,7 +123,7 @@ main() # Non Powerline Configuration else - tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${yellow}],} ${left_icon} " + tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${yellow}],} ${left_icon}" tmux set-option -g status-right "" From ab9a46105e68ac9dc0e3e0d1905183bbd7e44a48 Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 31 May 2020 16:33:38 -0700 Subject: [PATCH 2/4] fix extra space network mac --- scripts/network.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/network.sh b/scripts/network.sh index f95afda..145d142 100755 --- a/scripts/network.sh +++ b/scripts/network.sh @@ -16,8 +16,8 @@ get_ssid() ;; Darwin) - if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 &> /dev/null; then - echo "$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)" + if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 | sed 's/ ^*//g' &> /dev/null; then + echo "$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)" | sed 's/ ^*//g' else echo 'Ethernet' fi From 4849e304a678d27c970c5c3217faca9723123bfc Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 31 May 2020 16:41:00 -0700 Subject: [PATCH 3/4] battery spacing --- scripts/battery.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/battery.sh b/scripts/battery.sh index 25dc32b..d8c5723 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -83,7 +83,12 @@ main() { bat_stat=$(battery_status) bat_perc=$(battery_percent) - echo "♥ $bat_stat$bat_perc" + + if [ -z "$bat_stat" ]; then # Test if status is empty or not + echo "♥ $bat_stat $bat_perc" + else + echo "♥ $bat_perc" + fi } #run main driver program From b416c2142179d1e932618b3c72000a0f3ce8d1ef Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 31 May 2020 16:42:37 -0700 Subject: [PATCH 4/4] battery spacing for real --- scripts/battery.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/battery.sh b/scripts/battery.sh index d8c5723..cb16297 100755 --- a/scripts/battery.sh +++ b/scripts/battery.sh @@ -85,9 +85,9 @@ main() bat_perc=$(battery_percent) if [ -z "$bat_stat" ]; then # Test if status is empty or not - echo "♥ $bat_stat $bat_perc" - else echo "♥ $bat_perc" + else + echo "♥ $bat_stat $bat_perc" fi }