From 642e458c60777b9bde91f823241823ab8cbaad59 Mon Sep 17 00:00:00 2001 From: Dane Williams Date: Sun, 15 Mar 2020 16:41:11 -0700 Subject: [PATCH] version 2.0 --- README.md | 20 ++++++++++++++++++++ dracula.tmux | 4 ++-- sleep_weather.sh | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c4596c6..ea2f474 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ # tmux-dracula Color scheme for tmux inspired by the popular Dracula theme + +## Features +Day, date, time, timezone +Current location based on network with temperature and forecast icon (if available) +Network connection status and SSID +Battery percentage and AC power connection status +Color code based on if prefix is active or not +List of windows with current window highlighted + +## Screenshots + +## Installation +Use TPM (tmux plugin manager) and add to your .tmux.conf: +`set -g @plugin 'danerwilliams/tmux-dracula'` +Be sure that `run -b '~/.tmux/plugins/tpm/tpm'` is at the bottom of .tmux.config for tpm to work +Restart tmux and then use `prefix + I` (capital I as in Install) to install + +## Troubleshooting +Some users have experienced issues where the weather does not load immediately. This can be solved by manually running dracula.tmux: +`~/.tmux/plugins/tmux-dracula/dracula.tmux` diff --git a/dracula.tmux b/dracula.tmux index 82ee620..e9da1a2 100755 --- a/dracula.tmux +++ b/dracula.tmux @@ -21,7 +21,7 @@ main() yellow='#f1fa8c' # start weather script in background - ./sleep_weather.sh & + #./sleep_weather.sh & # set refresh interval tmux set-option -g status-interval 1 @@ -55,7 +55,7 @@ main() tmux set-window-option -g window-status-format "#[fg=${white}]#[bg=${gray}] #I #W " # run weather update script in background - #./sleep_weather.sh & + ./sleep_weather.sh & } diff --git a/sleep_weather.sh b/sleep_weather.sh index aac0d3f..1812147 100755 --- a/sleep_weather.sh +++ b/sleep_weather.sh @@ -9,7 +9,7 @@ main() ./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt if tmux has-session &> /dev/null then - sleep 1000 + sleep 15m else break fi