Skip to content
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

CPU Percentage Not Displaying on MacOS #254

Open
scottfwalter opened this issue Mar 16, 2024 · 2 comments
Open

CPU Percentage Not Displaying on MacOS #254

scottfwalter opened this issue Mar 16, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@scottfwalter
Copy link

scottfwalter commented Mar 16, 2024

Describe the bug

Given this config:

set -g @dracula-show-powerline true
set -g @dracula-fixed-location "Dallas TX"
set -g @dracula-show-flags true
set -g @dracula-show-left-icon session
set -g @dracula-cpu-usage true
set -g @dracula-cpu-percent true
set -g @dracula-cpu-display-load false
set -g @dracula-time-format "%m/%d/%y %r"

it will only display the label "CPU". I played around with the script and it looks like this line is the issue:

cpucores=$(sysctl -n hw.logicalcpu)

If I replace it will full path to sysctl it works:

cpucores=$(/usr/sbin/sysctl -n hw.logicalcpu)

System

  • OS: MacOS 14.3.1
  • Tmux Version: 3.4
@scottfwalter scottfwalter added the bug Something isn't working label Mar 16, 2024
@scottfwalter
Copy link
Author

I've noticed the path within the script file is only: /opt/homebrew/bin:/bin:/usr/bin and my shell's path

@Theoreticallyhugo
Copy link
Contributor

this sounds like an issue related to tmux and not dracula/tmux. also maybe close due to inactivity? @ethancedwards8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants