
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
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
ben2talk
1 month ago
Report
ben2talk
3 months ago
Report
ben2talk
8 months ago
Report
gzu
1 year ago
looks like it no longer compiles in Fedora 31, possibly due to qt5 updates
from /root/rpmbuild/BUILD/kwin-effect-osdclock-master/x86_64-redhat-linux-gnu/src/kwin_osdclock_autogen/mocs_compilation.cpp:2:
/usr/include/qt5/QtCore/qmetatype.h:1971:1: note: forward declaration of 'class QFont'
1971 | QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp:22:
/root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.h:89:11: error: field 'textFont' has incomplete type 'QFont'
89 | QFont textFont;
| ^~~~~~~~
In file included from /usr/include/qt5/QtCore/qobject.h:54,
from /usr/include/qt5/QtCore/qcoreapplication.h:46,
from /usr/include/qt5/QtCore/QCoreApplication:1,
from /usr/include/kwinglobals.h:24,
from /usr/include/kwineffects.h:29,
from /root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.h:27,
from /root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp:22:
/usr/include/qt5/QtCore/qmetatype.h:1971:1: note: forward declaration of 'class QFont'
1971 | QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp:22:
/root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.h:66:38: error: return type 'class QFont' is incomplete
66 | QFont configuredTextFont() const {
| ^
/root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp: In member function 'virtual void OsdClockEffect::reconfigure(KWin::Effect::ReconfigureFlags)':
/root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp:78:30: error: invalid use of incomplete type 'class QPalette'
78 | textColor = QPalette().color(QPalette::Active, QPalette::WindowText);
| ^
In file included from /usr/include/qt5/QtCore/qobject.h:54,
from /usr/include/qt5/QtCore/qcoreapplication.h:46,
from /usr/include/qt5/QtCore/QCoreApplication:1,
from /usr/include/kwinglobals.h:24,
from /usr/include/kwineffects.h:29,
from /root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.h:27,
from /root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp:22:
/usr/include/qt5/QtCore/qmetatype.h:1971:1: note: forward declaration of 'class QPalette'
1971 | QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp:78:48: error: incomplete type 'QPalette' used in nested name specifier
78 | textColor = QPalette().color(QPalette::Active, QPalette::WindowText);
| ^~~~~~
/root/rpmbuild/BUILD/kwin-effect-osdclock-master/src/osdclock.cpp:78:66: error: incomplete type 'QPalette' used in nested name specifier
78 | textColor = QPalette().color(QPalette::Active, QPalette::WindowText);
| ^~~~~~~~~~
make[2]: *** [src/CMakeFiles/kwin_osdclock.dir/build.make:74: src/CMakeFiles/kwin_osdclock.dir/kwin_osdclock_autogen/mocs_compilation.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [src/CMakeFiles/kwin_osdclock.dir/build.make:87: src/CMakeFiles/kwin_osdclock.dir/plugin.cpp.o] Error 1
make[2]: *** [src/CMakeFiles/kwin_osdclock.dir/build.make:100: src/CMakeFiles/kwin_osdclock.dir/osdclock.cpp.o] Error 1
make[2]: Leaving directory '/root/rpmbuild/BUILD/kwin-effect-osdclock-master/x86_64-redhat-linux-gnu'
make[1]: *** [CMakeFiles/Makefile2:185: src/CMakeFiles/kwin_osdclock.dir/all] Error 2
make[1]: Leaving directory '/root/rpmbuild/BUILD/kwin-effect-osdclock-master/x86_64-redhat-linux-gnu'
make: *** [Makefile:144: all] Error 2
make: Leaving directory '/root/rpmbuild/BUILD/kwin-effect-osdclock-master/x86_64-redhat-linux-gnu'
error: Bad exit status from /var/tmp/rpm-tmp.BtB9d3 (%build)
Report
laloch
1 year ago
I'm David in fact, but that doesn't really matter ;)
I believe that I have already pushed a fix for the compilation issue you are reporting back in September. Could you please pull the latest version from GitHub and try to build again?
Report
gzu
1 year ago
Report
baltolkien
1 year ago
Report
laloch
1 year ago
Report
goodtrailer
1 year ago
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
laloch
1 year ago
Report
goodtrailer
1 year ago
Report
onetuser
2 years ago
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
laloch
2 years ago
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
2 years ago
Report
laloch
2 years ago
Just do `sudo mv /usr/lib/plugins/kwin /usr/lib/x86_64-linux-gnu/qt5/plugins` and you should be fine.
Report
onetuser
2 years ago
Report
flaviobue
2 years ago
Scaling, however, doesn't work well on HiDPI displays.
Report
laloch
2 years ago
Report
gzu
2 years ago
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
laloch
2 years ago
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
2 years ago
running 'pkg-config --variable=interfaces_dir dbus-1' gives no output on Fedora 28.
Cheers
Report
laloch
2 years ago
Report
gzu
2 years ago
Report
gzu
2 years ago
I had a couple of issues getting it to work in Fedora but nothing I couldn't work around.
Thanks,
GZU
Report
laloch
2 years ago
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