Merge pull request #39 from dracula/mac_spacing
RIP if there are still spacing issues
This commit is contained in:
commit
59c37e1d63
3 changed files with 9 additions and 4 deletions
|
@ -83,7 +83,12 @@ main()
|
||||||
{
|
{
|
||||||
bat_stat=$(battery_status)
|
bat_stat=$(battery_status)
|
||||||
bat_perc=$(battery_percent)
|
bat_perc=$(battery_percent)
|
||||||
echo "♥ $bat_stat$bat_perc"
|
|
||||||
|
if [ -z "$bat_stat" ]; then # Test if status is empty or not
|
||||||
|
echo "♥ $bat_perc"
|
||||||
|
else
|
||||||
|
echo "♥ $bat_stat $bat_perc"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#run main driver program
|
#run main driver program
|
||||||
|
|
|
@ -123,7 +123,7 @@ main()
|
||||||
|
|
||||||
# Non Powerline Configuration
|
# Non Powerline Configuration
|
||||||
else
|
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 ""
|
tmux set-option -g status-right ""
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,8 @@ get_ssid()
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 &> /dev/null; then
|
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)"
|
echo "$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)" | sed 's/ ^*//g'
|
||||||
else
|
else
|
||||||
echo 'Ethernet'
|
echo 'Ethernet'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue