This commit is contained in:
Dane Williams 2020-03-14 16:57:01 -07:00
parent 5f784b72b6
commit 7e6749c848
5 changed files with 46 additions and 3 deletions

BIN
.weather.sh.swp Normal file

Binary file not shown.

View file

@ -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

View file

@ -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 "

13
internet.sh Executable file
View file

@ -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

16
weather.sh Executable file
View file

@ -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