sdfsd
This commit is contained in:
parent
bcd74c50c4
commit
c176f1a30a
2 changed files with 9 additions and 6 deletions
|
@ -20,6 +20,9 @@ main()
|
||||||
pink='#ff79c6'
|
pink='#ff79c6'
|
||||||
yellow='#f1fa8c'
|
yellow='#f1fa8c'
|
||||||
|
|
||||||
|
# start weather script in background
|
||||||
|
./sleep_weather.sh &
|
||||||
|
|
||||||
# set refresh interval
|
# set refresh interval
|
||||||
tmux set-option -g status-interval 1
|
tmux set-option -g status-interval 1
|
||||||
|
|
||||||
|
@ -43,7 +46,7 @@ main()
|
||||||
tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${yellow}],} ☺ "
|
tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${yellow}],} ☺ "
|
||||||
|
|
||||||
tmux set-option -g status-right "#[fg=${dark_gray},bg=${pink}] #(~/.tmux/plugins/tmux-dracula/battery.sh) "
|
tmux set-option -g status-right "#[fg=${dark_gray},bg=${pink}] #(~/.tmux/plugins/tmux-dracula/battery.sh) "
|
||||||
tmux set-option -ga status-right "#[fg=${dark_gray},bg=${cyan}] #(~/.tmux/plugins/tmux-dracula/network.sh) "
|
tmux set-option -ga status-right "#[fg=${dark_gray},bg=${cyan}]#(~/Documents/GitRepos/tmux-dracula/network.sh) "
|
||||||
tmux set-option -ga status-right "#[fg=${dark_gray},bg=${orange}] #(cat ~/.tmux/plugins/tmux-dracula/weather.txt) "
|
tmux set-option -ga status-right "#[fg=${dark_gray},bg=${orange}] #(cat ~/.tmux/plugins/tmux-dracula/weather.txt) "
|
||||||
tmux set-option -ga status-right "#[fg=${white},bg=${dark_purple}] %a %m/%d %I:%M %p #(date +%Z) "
|
tmux set-option -ga status-right "#[fg=${white},bg=${dark_purple}] %a %m/%d %I:%M %p #(date +%Z) "
|
||||||
|
|
||||||
|
@ -52,7 +55,7 @@ main()
|
||||||
tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${gray}] #I #W "
|
tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${gray}] #I #W "
|
||||||
|
|
||||||
# run weather update script in background
|
# run weather update script in background
|
||||||
./sleep_weather.sh &
|
#./sleep_weather.sh &
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,10 +7,10 @@
|
||||||
|
|
||||||
get_ssid()
|
get_ssid()
|
||||||
{
|
{
|
||||||
if /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2 &> /dev/null
|
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)
|
echo "$(/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I | grep -E ' SSID' | cut -d ':' -f 2)"
|
||||||
else
|
else
|
||||||
echo 'Ethernet'
|
echo ' Ethernet'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ main()
|
||||||
if ping -q -c 1 -W 1 google.com &>/dev/null; then
|
if ping -q -c 1 -W 1 google.com &>/dev/null; then
|
||||||
echo "$(get_ssid)"
|
echo "$(get_ssid)"
|
||||||
else
|
else
|
||||||
echo 'Offline'
|
echo ' Offline'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue