Skip to content
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

[Feature]: Add option to control the data range of system monitor sensors #247

Closed
Preons0 opened this issue Jul 5, 2024 · 2 comments · Fixed by #248
Closed

[Feature]: Add option to control the data range of system monitor sensors #247

Preons0 opened this issue Jul 5, 2024 · 2 comments · Fixed by #248

Comments

@Preons0
Copy link

Preons0 commented Jul 5, 2024

It could be good if the system monitor widget had the ability to set a non-automatic range. Currently, I couldn't find the option if it does exist.

@GraisenEdwards
Copy link

GraisenEdwards commented Jul 6, 2024

Can you do

{
          systemMonitor = {
            title = "Upload Speed";
            displayStyle = "org.kde.ksysguard.piechart";
            sensors = [{
              name = "network/all/upload";
              label = "Upload Speed";
              color = "235,203,139";
            }];
          };
          config.foo.bar = "baz";
        }
}

Or just in general use one of the high level widgets and set low level options for them?

@magnouvean
Copy link
Collaborator

I don't think that will work since the setting will need to be in the specific widget category in plasma-org.kde.plasma.desktop-appletsrc. With that said it should be possible if you use something like:

{
  name = org.kde.plasma.systemmonitor;
  config = ...;
}

(here I haven't completed the configuration, but it is possible if you spend some time finding the correct values to put in config).
#248 will add options for this though in the high-level widget, which is what I think is the best solution here. After that is merged you can specify range.from and range.to options for this widget. It will need some testing though as it's quite a large PR (it involves a lot of refactoring as well), so if anyone reading this has time to test it on their config and see if everything works (and comment how it does in the PR) that would be helpful :). It's pretty much done as well so probably will be in plasma-manager quite soon :)

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 a pull request may close this issue.

3 participants