instantWM icon indicating copy to clipboard operation
instantWM copied to clipboard

Picom shadows - only on floating windows [feature request]

Open Pebor opened this issue 4 years ago • 2 comments

Picom shadows can be added easily but there is a catch in that, that it doesn't look good in tiling scenarios. Adding a property to a window to distinguish if its floating or not would open up the possibility of it being filtered by picom when applying shadows. i3 has it's I3_FLOATING_WINDOW property that can be filtered through as a example.

This feature was approved by the developer , feel free to make a PR if you know how to create such a thing.

image

Pebor avatar Oct 26 '21 17:10 Pebor

Do you know of any similar property on dwm? And how would you actually filter in picom through window properties? Thanks in advance.

Yazidn avatar May 28 '22 15:05 Yazidn

The property aka class of the window has to be somehow set in the code when a window is in a tiling state, then when we have all floating windows tagged with a class of for example IWM_TILED_WINDOW we can in the picom config file set:

shadow-exclude = [
    "class-g = 'IWM_TILED_WINDOW'"
];

And this will ignore all tiled windows when applying the shadows, if that clears some stuff up.

Pebor avatar May 28 '22 17:05 Pebor