And now for a mini system info using QML

As with the clock in QML, I’ve been working this time to replace the system info Conky widget with one in QML.

Using dataengines, they provide most of the info, and QML is nice for the most part. It’s still a work in progress, but here you can see the plasmoid and Conky widgets side-by-side.

system1You can see I’m still missing some info. For example, I couldn’t find the kernel version or local IP in the data provided by the dataengine. Signal strength percentage is missing too. And Label in PlasmaComponents doesn’t seem to like the bold property.

I have yet to dive into fetching the weather and displaying it appropiately. All in all, I like how it looks so far. It is clear, though, that for a plasmoid like this, the configuration options is actually the hardest part. I’ll have to get to that at some point.

system2As usual, you can find the source code in my scratch repo.

 

About asoliverez

Free Software developer, KDE e.V. member, political activist at SoftwareLibreConCFK, Zen Buddhist, son of a retired physicist and politician ,and a Literature professor; husband of a beautiful QA consultant, and father of the cutest daughter

10 thoughts on “And now for a mini system info using QML

  1. fasd
    10/02/2013 at 19:49

    Finally someone did it! Keep working!

  2. markg85
    11/02/2013 at 07:17

    That looks rather cool!
    One piece of advice though :) It “looks” (when looking on your main.qml file) like you’re using a fixed number of cpu’s and you seem to have 4 cores ^_-

    It must be possible to fetch the number of cpu’s and make this a bit more dynamic.

    Good job so far!

    1. 11/02/2013 at 09:05

      There’s a lot of fixed info. The fan is also specific for my setup, and the partitions too. That’s why I said that the config would probably be most of the work.

    2. 11/02/2013 at 13:14

      I pushed a fix to make the CPUs dynamic. There’s still a lot of hardcode for other stuff, though

  3. mutlu
    11/02/2013 at 08:18

    Awesome! I have been hoping for something like this for ages! Thank you! :)

    *goes downloading the scripts from the repo… :D

  4. episteme
    11/02/2013 at 09:04

    i am very impatient to have this to replace gkrellm

    i hope this display the governor for each processor

    1. 11/02/2013 at 09:07

      if it doesn’t, you can change it to display what you need, just fiddle with main.qml

    2. 11/02/2013 at 13:17

      I checked, but there is no info in the dataengine about the governor for each processor. There is the current MHz, though, which I could display next to each core

  5. BeGe
    11/02/2013 at 09:35

    I am not sure which local IP you are looking for but there is one IP address under geolocation location IP.

    1. 11/02/2013 at 13:15

      It would be nice to get one per network interface, but a geolocation one could do too