Merge branch 'dracula:master' into master
This commit is contained in:
commit
e8b07bedf6
2 changed files with 4 additions and 2 deletions
|
@ -55,6 +55,8 @@ main()
|
||||||
left_icon="#S";;
|
left_icon="#S";;
|
||||||
window)
|
window)
|
||||||
left_icon="#W";;
|
left_icon="#W";;
|
||||||
|
hostname)
|
||||||
|
left_icon="#H";;
|
||||||
*)
|
*)
|
||||||
left_icon=$show_left_icon;;
|
left_icon=$show_left_icon;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -18,8 +18,8 @@ get_ssid()
|
||||||
;;
|
;;
|
||||||
|
|
||||||
Darwin)
|
Darwin)
|
||||||
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 | sed 's/ ^*//g' &> /dev/null; then
|
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 | sed 's/^[[:blank:]]*//g' &> /dev/null; then
|
||||||
echo "$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)" | sed 's/ ^*//g'
|
echo "$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)" | sed 's/^[[:blank:]]*//g'
|
||||||
else
|
else
|
||||||
echo 'Ethernet'
|
echo 'Ethernet'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue