version 2.0
This commit is contained in:
parent
c176f1a30a
commit
642e458c60
3 changed files with 23 additions and 3 deletions
20
README.md
20
README.md
|
@ -1,2 +1,22 @@
|
||||||
# tmux-dracula
|
# tmux-dracula
|
||||||
Color scheme for tmux inspired by the popular Dracula theme
|
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`
|
||||||
|
|
|
@ -21,7 +21,7 @@ main()
|
||||||
yellow='#f1fa8c'
|
yellow='#f1fa8c'
|
||||||
|
|
||||||
# start weather script in background
|
# start weather script in background
|
||||||
./sleep_weather.sh &
|
#./sleep_weather.sh &
|
||||||
|
|
||||||
# set refresh interval
|
# set refresh interval
|
||||||
tmux set-option -g status-interval 1
|
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 "
|
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 &
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ main()
|
||||||
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
./weather.sh > ~/.tmux/plugins/tmux-dracula/weather.txt
|
||||||
if tmux has-session &> /dev/null
|
if tmux has-session &> /dev/null
|
||||||
then
|
then
|
||||||
sleep 1000
|
sleep 15m
|
||||||
else
|
else
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue