Home

Awesome

Blink for OpenWallpaper

Blink is simple QOpenGL scene for the OpenWallpaper Plasma. Video demonstration: YouTube | Reddit

Blink preview image

Build instructions

Unpack the downloaded package and open the terminal:

# sudo ./build.sh

Also, you can enable mouse events: open Source/Blink.cpp and replace variable const bool CHECK_FOCUS = false; to true. Don't forget to recompile sources with the command above.

Parametres

All of the wallpaper packages must have wallpaper.ini file with the information below:

Information about package and author

VariableTypeDescriptionWallpaper TypeNecessary
NameStringName of current packageALL+
VersionStringPackage versionALL-
AuthorStringAuthor nameALL-
EmailStringAuthor emailALL-
AuthorLinkStringAuthor websiteALL-
CommentStringSmall text about packageALL-

Settings parameters

VariableTypeDescriptionWallpaper TypeNecessary
TypeStringOne of three typesALL+
MusicBoolHave music or notOGL, Gif+-
StartVolumeFloatStart volumeALL+-
FillModeStringVideo fill modeVideo-

Resources

VariableTypeDescriptionWallpaper TypeNecessary
SourceStringPath to package sourceALL+
MusicSourceStringPath to music sourceALL+-
PreviewImageStringPreview image for ManagerALL+

About FillMode you can read in Qt Documentation.

How to create own QtOpenGL wallpaper

API

The OpenWallpaper Plasma install abstract_render.hpp class to your system by path /usr/include/OpenWallpaper/QtOpenGL. Now you can create own class and inherit it of openWallpaper::ogl::QtRender. Don't forget override follow methods:

The OpenWallpaper plasma can work only with shared libraries, so your source file should have follow methods:

Attention: QtRender it is alias of a openWallpaper::ogl::QtRender. Be careful with that type of wallpaper, check source and then run package. The library can contain any C++ code.

Includes

For minimal build need include fallow libraries:

More information you can find in an official Qt Documentation

Context

The QOpenGLContext can be taken from QOpenGLContext::currentContext(). See Source/Blink.cpp for better understanding.

How to create the wallpaper package

Third-party

Links

Author

Code given from Qt Examples.