Coder Social home page Coder Social logo

federico-ntr / plasma5-wallpapers-dynamic Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zzag/plasma5-wallpapers-dynamic

0.0 0.0 0.0 8.07 MB

Dynamic wallpaper plugin for KDE Plasma

License: GNU General Public License v2.0

CMake 3.66% QML 20.26% C++ 74.31% Shell 1.78%

plasma5-wallpapers-dynamic's Introduction

plasma5-wallpapers-dynamic

plasma5-wallpapers-dynamic is a simple dynamic wallpaper plugin for KDE Plasma. Demo

Additional wallpapers

This plugin ships with only one dynamic wallpaper. If you'd like to install more, please visit Additional Wallpapers page.

Building plasma5-wallpapers-dynamic from Git

Before building plasma5-wallpapers-dynamic from source code, you need to install a couple of prerequisites.

Arch Linux:

sudo pacman -S cmake extra-cmake-modules git plasma-framework qt5-base qt5-declarative

Fedora:

sudo dnf install cmake extra-cmake-modules git kf5-kpackage-devel kf5-plasma-devel \
    kf5-ki18n-devel qt5-qtbase-devel qt5-qtdeclarative-devel

Ubuntu:

sudo apt install cmake extra-cmake-modules git libkf5package-dev libkf5plasma-dev \
    qtbase5-dev qtdeclarative5-dev

Once all prerequisites are installed, you need to grab the source code

git clone https://github.com/zzag/plasma5-wallpapers-dynamic.git
cd plasma5-wallpapers-dynamic

If you want to build some specific version of this plugin, run the following command from terminal

git checkout <version>

Configure the build

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=lib

Now trigger the build by running the following command

make

To install run

sudo make install

Install plasma5-wallpapers-dynamic using a package manager

Arch Linux:

yay -S plasma5-wallpapers-dynamic

openSUSE Tumbleweed:

zypper addrepo https://download.opensuse.org/repositories/home:KAMiKAZOW:KDE/openSUSE_Tumbleweed/home:KAMiKAZOW:KDE.repo
zypper refresh
zypper install plasma5-dynamic-wallpaper

How to start using this wallpaper plugin

Right-click a blank area of the desktop and choose "Configure Desktop...", select "Dynamic" wallpaper type and click the Apply button.

Dynamic wallpaper structure

A dynamic wallpaper is composed of a bunch of images and the associated metadata. The metadata contains all relevant information about the wallpaper, for example the user visible name, the type (solar or timed), per image data that can be used to determine what images reflect the user's light situation most accurately, etc.

A dynamic wallpaper must have the following filesystem structure

package
├── contents
│   └── images
│       ├── image.png
│       └── preview.png
└── metadata.json

All images, including the preview image, must be stored in contents/images folder. There must be at least two images, excluding the preview image. The metadata.json file is located in the toplevel wallpaper directory. This file contains all useful information about the dynamic wallpaper.

You can find two sample metadata.json files in this repository. One is for a solar dynamic wallpaper, see metadata.json.solar.sample, and the other one is for a timed dynamic wallpaper, see metadata.json.timed.sample.

For more details, see

How to install a dynamic wallpaper

There are several ways one could install a dynamic wallpaper.

The most preferred way is to use the "Add Wallpaper..." button in the configuration module of this plugin.

The other way is to use kpackagetool5 tool

kpackagetool5 --type Wallpaper/Dynamic --install <path to the wallpaper>

plasma5-wallpapers-dynamic's People

Contributors

kamikazow avatar vistaus avatar zzag avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.