Simple focus animations for tiling window managers.
Project description
flashfocus
Simple focus animations for tiling window managers.
Compatible with sway as well as all X based window managers (i3, bspwm, awesome-wm, xmonad...).
Flashfocus is currently pretty stable and I don't have any major features in the works, however the project is still actively maintained and feature requests are always welcome :)
Installation
For X based window managers, an active window compositor is required for the effects of flashfocus to be noticeable. If you don't have one setup already, I recommend picom.
Arch
Install from the Arch User Repository: flashfocus
Ubuntu/Debian
sudo apt-get install libxcb-render0-dev libffi-dev python-dev python-cffi
pip install flashfocus
Fedora
dnf install libffi-devel python-devel python-cffi
pip install flashfocus
openSUSE
Flashfocus is in the official repository of openSUSE Tumbleweed. openSUSE Leap users can install it from the X11:Utilities devel project:
zypper ar obs://X11:Utilities x11util
zypper ref
zypper in flashfocus
Nix / NixOS
Declaratively in /etc/nixos/configuration.nix
environment.systemPackages = with pkgs; [
flashfocus
];
Ad hoc
nix-env -iA nixpkgs.flashfocus
Quickstart
Picom setup
The following must be present in your picom config file:
detect-client-opacity = true;
If you use i3, the following is also required for flashfocus to work with tabbed containers:
opacity-rule = [
"0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
];
Running flashfocus
Flashfocus should be added to your startup programs. E.g for i3 place the following in your config:
exec_always --no-startup-id flashfocus
The flash_window
script can be used to flash the current window on key-press. E.g if you'd like to bind to mod+n in i3:
bindsym $mod+n exec --no-startup-id flash_window
Configuration
Flashfocus can be configured via its config file or with command line parameters. Some features, such as window-specific flash customization, are only available through the config file.
The config file is searched for in the following locations:
- $XDG_CONFIG_HOME/flashfocus/flashfocus.yml
- ~/.config/flashfocus/flashfocus.yml
- ~/.flashfocus.yml
When flashfocus is first run it creates a default config file in 1. or 2. Documentation of all configuration options is present in the config file.
See the wiki for some extra docs.
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
File details
Details for the file flashfocus-2.4.1.tar.gz
.
File metadata
- Download URL: flashfocus-2.4.1.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ba8d143a7bde9bf02bae9930fa4c610b6b3dba368ed61598064a735296acee1 |
|
MD5 | 90763b0faa8badf7178acc78dae499e2 |
|
BLAKE2b-256 | d2c5767d8c593b1a423849115ed150904459a33f46756b955067cb11f70264e9 |
File details
Details for the file flashfocus-2.4.1-py3-none-any.whl
.
File metadata
- Download URL: flashfocus-2.4.1-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7bd0237cf40a7f89242858e228ecf7b0930b2d7d58c938ac6c9e05f8a4ba09c |
|
MD5 | 636d342531e8b9b55e6f46aeae7235d6 |
|
BLAKE2b-256 | 925c84d7cd4ae3d5f4119270042dd7a96b2c06dcecdda45476e5a04d0159926d |