tmux icon indicating copy to clipboard operation
tmux copied to clipboard

CPU Percentage Not Displaying on MacOS

Open scottfwalter opened this issue 1 year ago • 2 comments

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 avatar Mar 16 '24 13:03 scottfwalter

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

scottfwalter avatar Mar 20 '24 18:03 scottfwalter

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

Theoreticallyhugo avatar Sep 19 '24 10:09 Theoreticallyhugo

closing due to inactivity. feel free to reopen if issue persists

Theoreticallyhugo avatar Jan 04 '25 19:01 Theoreticallyhugo