-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Enabling Weather plugin causes my MBP fans to increase globle warming #94
Comments
I'll need to test this, but it makes sense. Feel free to send in a PR. |
@devnolly I couldn't replicate this on my system but you are probably right. Could you please share the output of Thanks |
I get the same output actually. |
Thanks for taking a look. Here's the output. ` bash-3.2$ ps -p "$(cat /tmp/.dracula-tmux-weather.lock)" |
Not sure if this helps. ` echo "With leading space" ` |
So is there potentially a problem on MacOS? Because of the way MacOS ps works? That's what I'm assuming. |
It looks like ps on OSX doesn't support the "cmd" keyword. It's an alias for "args", so we should probably just use that. Could you please see if this works for your sleep_weather.sh?
|
This worked on my machine with macOS Monterrey 12.5.1: [ -f $LOCKFILE ] && ps -p "$(< $LOCKFILE)" -o args= | grep -F " ${BASH_SOURCE[0]}" && kill "$(< $LOCKFILE)" |
Hello, I dont have the same exact issue, but I saw on my Linux laptop that the I dont have that issue on my OSX work laptop though. |
#313 should probably resolve this. I had the same issue with |
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
The text was updated successfully, but these errors were encountered: