Skip to main content

swayblur

Basic i3ipc based script to blur an output's wallpaper when a client is present in it. Available via pypi or the NUR.

Installation

Stable Release

Swayblur is available in the NUR or from pypi:

pip install --user swayblur

Building from Source

git clone https://github.com/willpower3309/swayblur
cd swayblur
pip install --user .

Dependencies

Usage

In order for the script to run as expected, your sway config should not set any wallpaper. Remove the output * bg PATH line.

swayblur does not spawn oguri at launch. If spawning swayblur with a sway config via exec, ensure that exec oguri occurs before swayblur is executed!

swayblur [-h] [-b BLUR] [-a ANIMATE] [-c CONFIG-PATH] [-v] [--verbose]

Option Description
-b, --blur blur strength (default: 20, min: 5, max: 100)
-a, --animate animation duration (default: 1, min: 1, max: 20)
-c, --config-path oguri config path (default: $XDG_CONFIG_HOME/oguri/config)
--verbose prints additional information
-v, --version show program's version number and exit
-h, --help show the help message and exit

Configuration

Since swayblur requires oguri, it reads its config file: ~/.config/oguri/config. I personally use the below config, it's about as minimal as you can get:

[output *]
image=PATH_TO_YOUR_WALLPAPER
filter=nearest
scaling-mode=fill
anchor=center

Metadata

Release files for swayblur 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for swayblur 1.1.1
File Size Uploaded Provenance Actions
swayblur-1.1.1.tar.gz 8.2 kB Without provenance Details for swayblur-1.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for swayblur 1.1.1
File Interpreter ABI Platform Actions
swayblur-1.1.1-py3-none-any.whl Python 3 none any Details for swayblur-1.1.1-py3-none-any.whl

Total release size: 16.6 kB

Release files / swayblur-1.1.1.tar.gz

Download URL swayblur-1.1.1.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6faca3e8636a7b29c2264a7acb2fc83762f34347ad483182d682beb3e5dabff8
BLAKE2b-256 checksum
How to use checksums
5eebfc8e385aba025c2c3c709c68df276bd438d03b60bd100b7cd70bcd9bab93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Release files / swayblur-1.1.1-py3-none-any.whl

Download URL swayblur-1.1.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc3ca81395848d6f50fc598d51884b7ac9a8e96c0490c8b2f616193f14db4019
BLAKE2b-256 checksum
How to use checksums
0cea22e0491b79322408e829b953e7110eaeb31bee74e979c462cb9ce74bbc8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

Security for swayblur 1.1.1

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page