Skip to main content

Set the wallpaper for KDE

Project description

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.

@readwithai logo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kde-wallpaper-cli-1.2.0.tar.gz (3.0 kB view details)

Uploaded Source

File details

Details for the file kde-wallpaper-cli-1.2.0.tar.gz.

File metadata

  • Download URL: kde-wallpaper-cli-1.2.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for kde-wallpaper-cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 dd0d998198c835ac947dc04fc117cb0f7ea1be380ca2fa7ee7dbb06b0dec343d
MD5 f9c79cc2b59f523ab62feb27dc507bd5
BLAKE2b-256 c786ca9bfe60363d4e0af76cf7dbb2b7cf01970def80426d31d32bcc253241b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page