-
Notifications
You must be signed in to change notification settings - Fork 527
CPU temperature segment #495
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks like a cool segment. Let's work out some questions I have together :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Let's iterate and we're soon there :), it will be a cool segment!
segments/cpu_temp.sh
Outdated
| # smctemp (Macos only) | ||
|
|
||
| TMUX_POWERLINE_SEG_CPU_TEMP_ICON="${TMUX_POWERLINE_SEG_CPU_TEMP_ICON:- }" | ||
| TMUX_POWERLINE_SEG_CPU_TEMP_SENSORS_LINE_MARKER="${TMUX_POWERLINE_SEG_CPU_TEMP_SENSORS_LINE_MARKER:-Package id 0\|Physical id 0\|temp1}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current default value, is this one grep pattern that works for smctemp or sensors?
Could there be 2 default values set depending on tp_shell_is_linux() or similar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only for 'sensors'.
Checked this on M1 Mac and three different Linux machines. Looks like
sensorsoutput data varies depending on the machine, so users can configureTMUX_POWERLINE_SEG_CPU_TEMP_SENSORS_LINE_MARKERgreppattern to indicate a line containing proper temperature.'Normal' temperature:

'High' temperature:
