fennerm / flashfocus

Simple focus animations for tiling window managers.
MIT License
748 stars 10 forks source link

Don't flash with only one client visible? #59

Open majamin opened 3 years ago

majamin commented 3 years ago

Is it possible to have an option that prevents a client from flashing when it is the only visible window on the screen?

fennerm commented 3 years ago

Is the 'flash-lone-windows' config option what you're looking for maybe?

majamin commented 3 years ago

Is the 'flash-lone-windows' config option what you're looking for maybe?

Yes. Thanks so much.

EDIT: I tried this option, but lone windows still flash (dwm)

majamin commented 3 years ago

OUTPUT of flashfocus:

INFO:root:Loading configuration from /home/marian/.config/flashfocus/flashfocus.yml
INFO:root:Initializing with parameters:
{'flash_opacity': 0.8, 'default_opacity': 1.0, 'flash_lone_windows': 'never', 'ntimepoints': 10, 'flash_on_focus': True, 'time': 500.0, 
'simple': False, 'flash_fullscreen': True, 'rules': None}
INFO:root:Initializing default window opacity...
INFO:root:Setting all windows to their default opacity...
INFO:root:Initializing threads...
INFO:root:Threads initialized, waiting for events...
fennerm commented 3 years ago

Hmm config option is working fine for me on i3/sway... Do you use a status bar by chance?

jpmvferreira commented 2 years ago

I also have this issue on i3, and I do have Polybar running.

I set flash-lone-windows: 'never' and it still flashes when I have lone windows, e.g. Firefox in a desktop, and stacked windows as well.

fennerm commented 2 years ago

Thanks for the added detail @jpmvferreira that's very helpful. Should have time to look into this in a week or so, (but obviously feel free to grab it if you're interested)