tmux icon indicating copy to clipboard operation
tmux copied to clipboard

CPU Percentage Not Displaying on MacOS

Open scottfwalter opened this issue 11 months 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