Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Provide two new modalities for CLI #8

Merged
merged 3 commits into from Nov 30, 2021
Merged

Provide two new modalities for CLI #8

merged 3 commits into from Nov 30, 2021

Conversation

tahsinkose
Copy link

Hey there,

I initially thank you for this fork. It allowed me to monitor my CPU flawlessly. This PR involves the changes I made locally to make use of the CLI program through Conky. I'm not a Conky expert, so I was not really sure whether the current version of CLI is directly usable with some Lua scripting. Instead of that, I went ahead with providing the following two options:

  1. --output-once. This simple flag allows the CLI program to finish immediately after printing the latest information about the CPU. I'm using it to update my Conky widget, however, it can be used by any such monitoring application.
  2. --refresh-in-place. This is also a simple flag. It pops up an ncurses windows and flushes the information block. This might be useful for those who want to embed the terminal output into widgets. It requires libncurses5-dev to be installed as I added to README.

This diff allowed me to monitor my 8-core Ryzen 7 5800H CPU in a very neat way 馃檪

conky

@Ta180m
Copy link
Owner

Ta180m commented Nov 30, 2021

Thanks for the PR! It looks great.

@Ta180m Ta180m merged commit 8ebd281 into Ta180m:master Nov 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants