Simple focus animations for tiling window managers
Project description
flashfocus
Simple focus animations for tiling window managers.
Compatible with all X based window managers (i3, bspwm, awesome-wm, xmonad...).
Installation
An active window compositor is required for the effects of flashfocus to be noticeable. If you don't have one setup already, I recommend compton.
Arch
Install from the Arch User Repository: flashfocus-git
Ubuntu/Debian
sudo apt-get install libxcb-render0-dev libffi-dev python-dev python-cffi
pip install flashfocus
Quickstart
Compton setup
The following must be present in your compton 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@[0]:32a = '_NET_WM_STATE_HIDDEN'",
"0:_NET_WM_STATE@[1]:32a = '_NET_WM_STATE_HIDDEN'",
"0:_NET_WM_STATE@[2]:32a = '_NET_WM_STATE_HIDDEN'",
"0:_NET_WM_STATE@[3]:32a = '_NET_WM_STATE_HIDDEN'",
"0:_NET_WM_STATE@[4]: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.
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
Hashes for flashfocus-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 727ade2d3049efc648d6d1677b828b1af77797925c900b594fbe6c6377bdb0c7 |
|
MD5 | af0d7237c45e8e50ba8fcd2360d5c39c |
|
BLAKE2b-256 | 8e47797d518a1a2f6f1c1d10b87ea0305d4cfd1e35397d0501ee1f2ecb02902f |