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
python-i3ipc: build dependency for communicating with SwayImageMagick: used to generate the blurred wallpaperoguri: used to set the wallpaper without displaying a gray screen for a split second
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swayblur-1.1.1.tar.gz.
File metadata
- Download URL: swayblur-1.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6faca3e8636a7b29c2264a7acb2fc83762f34347ad483182d682beb3e5dabff8
|
|
| MD5 |
37e8b1a419ddf4575ab6a13870e361fa
|
|
| BLAKE2b-256 |
5eebfc8e385aba025c2c3c709c68df276bd438d03b60bd100b7cd70bcd9bab93
|
File details
Details for the file swayblur-1.1.1-py3-none-any.whl.
File metadata
- Download URL: swayblur-1.1.1-py3-none-any.whl
- Upload date:
- Size: 8.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc3ca81395848d6f50fc598d51884b7ac9a8e96c0490c8b2f616193f14db4019
|
|
| MD5 |
388a25921f002d45b0e6134dd0e1dacf
|
|
| BLAKE2b-256 |
0cea22e0491b79322408e829b953e7110eaeb31bee74e979c462cb9ce74bbc8a
|