kde-wallpaper-cli
@readwithai - X - blog - machine-aided reading - 📖⚡️🖋️
Set the wallpaper for KDE from the command-line.
Note: New versions of KDE have a command-line tool plasma-apply-wallpaper to do this
Attribution
The approach used here was documented on stackoverflow and this blogpost by Yaltirakli, which uses the same motivation.
Motivation
It's so silly. It should be easy to set the wallpaper from the command-line. But in KDE there is no easy way to do this, instead you have to send a dbus message which runs a script which configures the desktop. I'm not going to remember this, and so I'd need to put this in a script. Also, I like to have as little of "my own" configuration as possible and instead push this into open source command-line tools so moving machines is useful. This creates this script, but makes it easy to install this on a new machine and shares this with the world.
The "accepted" way of doing this seems to be send a script to KDE's plasmashell to update the wallpaper for each desktop.
Alternatives and prior work
I tried superpaper but this did not work with pipx without manual tweaks.
Tools like feh can set wallpaper for other window managers.
Related tools
You might like to try my program mapillary-nearby which will find streetview style images around a given area.
About me
I am @readwithai. I create tools for reading, research and agency sometimes using the markdown editor Obsidian.
I also create a stream of tools that are related to carrying out my work.
I write about lots of things - including tools like this - on X. My blog is more about reading and research and agency.
Metadata
Release files for kde-wallpaper-cli 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kde-wallpaper-cli-1.2.0.tar.gz | 3.0 kB | Without provenance | Details for kde-wallpaper-cli-1.2.0.tar.gz |
Release files / kde-wallpaper-cli-1.2.0.tar.gz
| Download URL | kde-wallpaper-cli-1.2.0.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd0d998198c835ac947dc04fc117cb0f7ea1be380ca2fa7ee7dbb06b0dec343d
|
|
BLAKE2b-256 checksum How to use checksums |
c786ca9bfe60363d4e0af76cf7dbb2b7cf01970def80426d31d32bcc253241b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for kde-wallpaper-cli 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.