Open litoj opened 1 year ago
smart shadow is what I was trying to get at with #116 , and will definitely be implemented (in fact, I think that could even default to being on). The color settings are a really good idea, but I don't want to clash with sway upstream by changing them. Perhaps we can implement the toggle like idea you had!
To expand on the idea of how to specify the colours, would it make sense to use the shadows
option and instead of on
just directly specify the colour or use off
to disable altogether?
shadows off/#RRGGBB off/on/#RRGGBB off/on/#RRGGBB
on
could imply to be the same color as for the first/active window column, just an idea
Just as we have different colors for border, it would be nice if the colors settings could be expanded to shadows too, possibly like:
Maybe a toggle for the shadow/saturation altogether with focused windows, something like:
And lastly an option to disable shadows, when there is only one window (if no gaps or
smart_gaps
is set, then the shadow has nowhere to display, aside of over the statusbar (which is probably unwanted by the user)). This could be implicit (toggle withsmart_gaps
) or explicit:smart_shadows on/off
These are just ideas, it is currently already possible using swayipc, I made a simple script for this functionality:
Edit:
BTW the forementioned script doesn't work perfectly, since 100% windows are all windows that have changed tiling mode for the next window. I fixed that with detecting their size. Still, both have the problem that when closing a second-to-last window, the last will be focused but resized after the event, meaning it reports size < screen size so it has enabled shadows even though it shouldn't.
When trying to detect floating mode change (resizing happend) it works with getting into floating mode, but the size and percent is completely messed up when going back to tiling mode. I don't know why, but it reports window size 2526x1542 when it tiles as the only window on tiled workspace, but full screen res (without statusbar) 2560x1576 when other tiled windows are present.