Skip to main content

Basic sway wallpaper auto-blurring script

Project description

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)
-v, --verbose prints additional information
-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

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

swayblur-1.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

swayblur-1.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file swayblur-1.1.0.tar.gz.

File metadata

  • Download URL: swayblur-1.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for swayblur-1.1.0.tar.gz
Algorithm Hash digest
SHA256 392d9e4b7a748a0e9d0ceebf75e3a35dd5d438245d1ece18b8ec22682735a9fb
MD5 fd2ef0ff1d7d82ed3c6404bd124b380c
BLAKE2b-256 abb82155ef3fed01fe4560292cfac0524d70363e66e475f8c23b40a342d4037b

See more details on using hashes here.

File details

Details for the file swayblur-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: swayblur-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for swayblur-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d65f0ff5249a3216826d95fc04e4c33eee053db2e9e28018540a123b3689ce96
MD5 a31e7ed1d114f80466a779a93ba6801c
BLAKE2b-256 ce6fbb74cebbe89a0c319c3b1645933be24fb7329059daa9a612487c42949384

See more details on using hashes here.

Supported by

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