Skip to content

Briefly "flash" the opacity of Sway windows on focus. Features easing.

License

Notifications You must be signed in to change notification settings

lilithium-hydride/swayflashy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swayflashy

Briefly "flash" the opacity of Sway windows on focus. All parameters of the animation are fully configurable, including easing animations provided by keyframe. There are not yet any command-line switches or configuration files; all configuration is done by modifying the constants near the top of main.rs.

In X11, this effect is implemented at the compositor level. Wayland does not presently feature any way for "eye candy programs" to hook in and add effects such as blur and animated transparency, so swayflashy spams Sway with opacity commands over IPC in order to simulate intentionally attention-grabbing focus animations. Despite its spammy nature, CPU usage is minimal.

Building

git clone https://github.com/lilithium-hydride/swayflashy
cd swayflashy
cargo build --release  # Take out the `--release` to see debug messages
# The binary will be located at `target/release/swayflashy`

About

Briefly "flash" the opacity of Sway windows on focus. Features easing.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages