From 7e6749c84861ed9e9c51b00d6ce345a9ec9b85ed Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sat, 14 Mar 2020 16:57:01 -0700 Subject: [PATCH] v1.1 --- .weather.sh.swp | Bin 0 -> 12288 bytes battery.sh | 5 +++++ dracula.tmux | 15 ++++++++++++--- internet.sh | 13 +++++++++++++ weather.sh | 16 ++++++++++++++++ 5 files changed, 46 insertions(+), 3 deletions(-) create mode 100644 .weather.sh.swp create mode 100755 internet.sh create mode 100755 weather.sh diff --git a/.weather.sh.swp b/.weather.sh.swp new file mode 100644 index 0000000000000000000000000000000000000000..ee79d09c500bf41207af03c5bd4e8ad28c2c1114 GIT binary patch literal 12288 zcmeI2L2DE-6o6knxk#-jRMg9BS8OZpq^+0IQbAZ14_<`oL9}Eu*_pshG9;O=5Rs(Gu4>o3Z?yj$`rV{3=d9H@j}5Q^Hoykh02^Qf zY=8~0f&b7zY-Zpco%>vO_Qh_VnVP$hCpN$a*Z><~18jf|umLu}2G{@_U;}L6KQth7 zfQPdHUx@Vo|MBntZ*u@&iOWA}@R9gH91w;mh#_&G*e14!P2vu5n^+;1 zh+D)B;u>+4m?!3lS>giGBhC}wyE7p@Unh950XDz}*Z><~18jf|umLu}2H3zq8mMb& zEcAVAF+E}K&7Ss1o!f<%HNYF_!2zVL<&_j2K%wJq)OB+dcMDy2_R(5zY@pYJo*Cl{ zEWB=T@WA1c*M)I*SGip8w!T`zmtFFy4JyzN?I=VO+o7S{wa-YCabyp*WS4m9efML>cw=&1FR;a1bz62~@^3 z#*STPoH%>~*YBao^`5Y8Rjq(BasQ7=>4m8r`b_0b6VU{uzIKaBR+Y}vmr+R9aM<;p zr55<#mvNkuOcaOR@WvKMXZ6%KkCjt0l3B*o~%P(wy|`66Nl7qkIzk28CeJF U`CSlg@M2`F&~^_;l3MJ40cc6@v;Y7A literal 0 HcmV?d00001 diff --git a/battery.sh b/battery.sh index fe8a234..699026f 100755 --- a/battery.sh +++ b/battery.sh @@ -1,5 +1,9 @@ #!/usr/bin/env bash +#author: Dane Williams +#scipt for gathering battery percentage and A/C status +#script is called in dracula.tmux program + battery_percent() { echo $(pmset -g batt | grep -Eo '[0-9]?[0-9]?[0-9]%') @@ -23,5 +27,6 @@ main() echo "♥ $bat_stat$bat_perc" } +#run main driver program main diff --git a/dracula.tmux b/dracula.tmux index 4ce3119..c9a03e2 100755 --- a/dracula.tmux +++ b/dracula.tmux @@ -16,11 +16,16 @@ main() cyan='#8be9fd' green='#50fa7b' orange='#ffb86c' + red='#ff5555' pink='#ff79c6' + yellow='#f1fa8c' # set refresh interval tmux set-option -g status-interval 1 + # set clock + tmux set-option -g clock-mode-style 12 + # set length tmux set-option -g status-left-length 100 tmux set-option -g status-right-length 100 @@ -34,9 +39,13 @@ main() # status bar tmux set-option -g status-style "bg=${gray},fg=${white}" - tmux set-option -g status-left "#[bg=${green},fg=${dark_gray}]#{?client_prefix,#[bg=${orange}],} ☺ " - tmux set-option -g status-right "#[fg=${dark_gray},bg=${cyan}] tructus " - tmux set-option -ga status-right "#[fg=${dark_gray},bg=${pink}] #(~/.tmux/plugins/tmux-dracula/battery.sh) #[fg=${white},bg=${dark_purple}] %a %H:%M #(date +%Z) %m/%d/%Y " + + 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 -ga status-right "#[fg=${dark_gray},bg=${cyan}] tructus " + tmux set-option -ga status-right "#[fg=${dark_gray},bg=${orange}] flazen " + tmux set-option -ga status-right "#[fg=${white},bg=${dark_purple}] %a %m/%d %I:%M %p #(date +%Z) " # window tabs tmux set-window-option -g window-status-current-format "#[fg=${white},bg=${dark_purple}] #I #W " diff --git a/internet.sh b/internet.sh new file mode 100755 index 0000000..11ebaf7 --- /dev/null +++ b/internet.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +#author: Dane Williams +#script for gathering internet connectivity info +#script is called in dracula.tmux program + +main() +{ + +} + +#run main driver function +main diff --git a/weather.sh b/weather.sh new file mode 100755 index 0000000..cfd02ea --- /dev/null +++ b/weather.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash + +#author: Dane Williams +#script for gathering current location and weather at location +#script is then called in the dracula.tmux program + +city=$(curl -s https://ipinfo.io/city 2> /dev/null) + + +main() +{ + echo $IP +} + +#run main driver program +main