dracula / dracula/tmux

Bug: Enabling Weather plugin causes my MBP fans to increase globle warming

Open
#94 10 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Shell
Stars
856
Forks
368
Avg merge
2m
Merged PRs (30d)
1

Description

### Describe the bug
Hi Devs - When using the weather plugin the fans on my '19 MBP (using Catalina/zsh/oh-my-zsh) spin up and don't stop until I shut down tmux. A couple of things seem to have helped.

Setting the refresh to something more that 5 seems to help:
`set -g @dracula-refresh-rate 30`

It looks like this statement in sleep_weather.sh produces an error because grep doesn't find anything. I can see that extra processes aren't getting killed:
`[ -f $LOCKFILE ] && ps -p "$(cat $LOCKFILE)" -o cmd= | grep -F " ${BASH_SOURCE[0]}" && kill "$(cat $LOCKFILE)"`

Removing the leading space in `" ${BASH_SOURCE[0]}"` seems to produce the desired result on my system.

### To Reproduce
Starting tmux with Dracula enable and using the weather/location plugin.

### Expected behavior
I run tmux and my machine is quiet as a mouse.

### System
- OS: 19 MBP (using Catalina/zsh/oh-my-zsh)
- Tmux Version: tmux 3.1c

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.