Provide two new modalities for CLI #8

Merged
tahsinkose merged 3 commits from conky-support into master 2021-11-30 18:55:07 +00:00
tahsinkose commented 2021-11-30 18:01:37 +00:00 (Migrated from github.com)

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

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](https://user-images.githubusercontent.com/10549928/144102208-06df0777-7237-4410-adfa-7f1590557b8d.png)
Ta180m commented 2021-11-30 18:55:02 +00:00 (Migrated from github.com)

Thanks for the PR! It looks great.

Thanks for the PR! It looks great.
Sign in to join this conversation.
No description provided.