Skip to content

Conversation

@iyegoroff
Copy link
Contributor

Checked this on M1 Mac and three different Linux machines. Looks like sensors output data varies depending on the machine, so users can configure TMUX_POWERLINE_SEG_CPU_TEMP_SENSORS_LINE_MARKER grep pattern to indicate a line containing proper temperature.

'Normal' temperature:
1

'High' temperature:
2

Copy link
Owner

@erikw erikw left a 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 :)

Copy link
Owner

@erikw erikw left a 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!

# 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}"
Copy link
Owner

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only for 'sensors'.

@erikw erikw merged commit 87c9014 into erikw:main Oct 28, 2025
1 check passed
@iyegoroff iyegoroff deleted the cpu_temp branch October 28, 2025 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants