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_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
|
||||
|
|
|
@ -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 ""
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue