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.

Installation

Dependencies

Stable Release

pip install --user swayblur

Development Release

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

Usage

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

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

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

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.0.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

swayblur-1.0.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: swayblur-1.0.0.tar.gz
  • Upload date:
  • Size: 7.4 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.0.0.tar.gz
Algorithm Hash digest
SHA256 10427bf4cb1ff7aef9f9c8ba31847e3894e819c01f177df6f8f58150a22a6aba
MD5 9529f229fe5ab0658acd16172d8810b4
BLAKE2b-256 ac4019e6d1bc750aa918f208ef037793231e91560215f6ab8721904e565cc702

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swayblur-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f305b69205a27c9cf89b7720f8944b037b1f9222d7f9f954e8144a58d5743735
MD5 2df1a03361e386c4f2cff4b0602a8a16
BLAKE2b-256 fab344c72b7b937990ba243bfbd085e60659c0c775e85590f93d3f3a210aa733

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