Skip to content

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

Open

Description

@Pebor

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

Activity

  1. Yazidn commented on May 28, 2022

    @Yazidn

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

  2. Pebor commented on May 28, 2022

    @Pebor
    ContributorAuthor

    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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions