Kwin Effects clock effect kwin osd

Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/laloch/kwin-effect-osdclock.git

4
Score 70.0%
Description:

KWin effect that displays clock at the corner of the screen

baltolkien

2 months ago

9 +Great effect

Report

C

laloch

1 month ago

Hi Baltasar, thanks for your kind words and for the nice blog post!

Report

goodtrailer

3 months ago

9 really nice how it's always on top

pro tip: if you want 12hr time, change line 221 in osdclock.cpp to:

path.addText(0, 55, textFont, t.toString("hh:mm a").remove(6, 3));

note: it doesn't show "am" or "pm", just the time in 12hr

Report

C

laloch

3 months ago

Hi goodtrailer, thanks for suggestion. I don't really maintain the plugin much beyond occasional bug fixes. In the future I'll most probably implement time formatting according to the configured user locale.

Report

goodtrailer

3 months ago

(for anyone else who wants 12hr time and is impatient :p)

Report

onetuser

5 months ago

Hello,
Could not figure out how to make this working on Ubuntu 17. I've managed to build the project, but what to do with generated files:
/usr/lib/plugins/kwin/effects/plugins/libkwin_osdclock.so
/usr/lib/plugins/kwin/effects/configs/kwin_osdclock_config.so
There is no osdclock in Settings->Desktop behavior.
Thanks.

Report

C

laloch

5 months ago

Hi onetuser,

OSD Clock is a KWin effect plugin, so you should see its configuration UI in "Desktop Effects" category. I have just uploaded a screenshot of System Settings application window for you to see what it should look like.

Report

onetuser

5 months ago

Yes, i do not see it in "Desktop Effects" even after reboot. Are those two files enough? No need to add anything to /usr/share/kwin/effects/ or somewhere or edit some config files?

Report

C

laloch

5 months ago

You are right. There's something wrong with Qt5 environment on Ubuntu 17.
Just do `sudo mv /usr/lib/plugins/kwin /usr/lib/x86_64-linux-gnu/qt5/plugins` and you should be fine.

Report

onetuser

5 months ago

It worked, thank you!

Report

flaviobue

10 months ago

9 Thanks! I love it. I even use it with Raleway font as on the screenshot.
Scaling, however, doesn't work well on HiDPI displays.

Report

C

laloch

10 months ago

Thanks for the feedback. I know about the HiDPI issue. I've already noticed it on my FHD+ display. I can imagine that it looks much worse in 4K. I'll try to fix it soon.

Report

gzu

11 months ago

Hi,
For Fedora I changed the cmake command to
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib64/qt5 ..
Also "src/CMakeFiles/kwin_osdclock_config.dir/build.make" didn't seem to have the full path to org.kde.kwin.Effects.xml.
I edited it to "/usr/share/dbus-1/interfaces/org.kde.kwin.Effects.xml" (in 2 places) before running make.
Thanks,
GZU

Report

C

laloch

11 months ago

Hi GZU,
thanks for explanation.
I should update the build instructions to point out the differences between distributions.
Regarding the interface declaration XML: It's strange. Could you please post the output of 'pkg-config --variable=interfaces_dir dbus-1'?
Thanks

Report

gzu

11 months ago

Hi laloch,

running 'pkg-config --variable=interfaces_dir dbus-1' gives no output on Fedora 28.

Cheers

Report

C

laloch

10 months ago

Indeed! On Fedora you need to install dbus-devel package. On Debian/Ubuntu it's libdbus-1-dev. I'll update the README accordingly. Thanks for reporting!

Report

gzu

11 months ago

9 +

Report

gzu

11 months ago

Nice kwin clock, good replacement for beclock (which I used in KDE4).
I had a couple of issues getting it to work in Fedora but nothing I couldn't work around.
Thanks,
GZU

Report

C

laloch

11 months ago

Thanks, you're very kind. I made it for myself years ago when our good old BeClock died along with Plasma 4. They even share some parts of code (specifically the blur effect).
Would you mind sharing the issues you had in Fedora? Or perhaps even better please file a bug report(s) over at GitHub if you think there's something I should fix.

Report

12345678910
4
product-maker baltolkien May 06 2019 9 excellent
+Great effect
product-maker goodtrailer Apr 22 2019 9 excellent
really nice how it's always on top pro tip: if you want 12hr time, change line 221 in osdclock.cpp to: path.addText(0, 55, textFont, t.toString("hh:mm a").remove(6, 3)); note: it doesn't show "am" or "pm", just the time in 12hr
product-maker flaviobue Aug 29 2018 9 excellent
Thanks! I love it. I even use it with Raleway font as on the screenshot. Scaling, however, doesn't work well on HiDPI displays.
product-maker gzu Aug 14 2018 9 excellent
+
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
GPLv2 or later
version
updated Aug 12 2018
added Aug 12 2018
downloads today
0
page views today 9