YearProgress

Plasma 5 Calendars plasma plasmoid

Source (required if based on other people's work):

0
Score 54%
Description:

A simple progress bar which indicates the time elapsed since the beginning of the year, as a percentage (inspired by https://twitter.com/ProgressBar201X)

> DEPENDENCIES <

* Extra CMake modules

* KDE Frameworks 5

> BUILD <

tar xvf YearProgressPlasmoid-1.0.1.tar.gz

cd YearProgressPlasmoid-1.0.1

mkdir build

cd build

cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` ..

make

sudo make install

avlas

4 days ago

It doesn't seem to update the percentage automatically, does it? I mean, if plasma is running for days, one needs to restart plasma manually to get the % updated...

Report

C

Refused

4 days ago

Yes it does: the day is checked one every hour.

You can try it by yourself (don't forget to revert the canges, rebuild and reinstall):

- edit src/yearprogressplasmoid.cpp replacing 60000 with 2000 at row 47, so it will be updated every two seconds,

- make && sudo make install && plasmoidviewer -a org.kde.yearprogressplasmoid.

- change the system date by some weeks ahead and you will see the percentage changing.

Report

avlas

4 days ago

Sounds great! It was few days since I used my laptop last time, and realized of this. Now I understand that less than an hour passed and that explains it wasn't updated (yet).

Report

avlas

8 days ago

+ Nice minimalistic year progress bar!

Report

C

Refused

8 days ago

Thank you!

Report

avlas

8 days ago

Thanks! Very nice and minimalistic plasmoid :)

May I suggest a tiny improvement? Please add +0.5 to properly round l_result -> in yearprogressplasmoid.cpp (line 69) -> l_result = ((qreal)l_days_elapsed/(qreal)l_days_total) * 100 + 0.5;

Report

C

Refused

8 days ago

Thanks for your feedback. Actually, the value was just truncated to integer, now it shows the first digit as well (so, no need to add 0.5)

Report

product-maker avlas Aug 10 2018

+ Nice minimalistic year progress bar!
File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
GPLv2 or later
version
1.0.1
updated Aug 10 2018
added Aug 08 2018
downloads today
0
page views today 3