Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Picom shadows - only on floating windows [feature request] #117

Open
Pebor opened this issue Oct 26, 2021 · 2 comments
Open

Picom shadows - only on floating windows [feature request] #117

Pebor opened this issue Oct 26, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Pebor
Copy link
Contributor

Pebor commented Oct 26, 2021

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

@con-f-use con-f-use added the enhancement New feature or request label Oct 27, 2021
@Yazidn
Copy link

Yazidn commented May 28, 2022

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

@Pebor
Copy link
Contributor Author

Pebor commented May 28, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants