Only have window shadows with picom when windows are floating? #2944
-
Hello, I'm currently using picom to add shadows to my windows. Is there the similar solution for qtile? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Your best bet is to set a similar window hint yourself using a hook, and then tell picom to watch out for that. For example: from libqtile import qtile, hook
@hook.subscribe.float_change
@hook.subscribe.client_new
def set_hint(window):
window.window.set_property("IS_FLOATING", int(window.floating)) This will set the hint IS_FLOATING on all managed windows (those menu-like windows like rofi and dmenu are not managed by qtile) that will be 1 if the window is floating or 0 if not. |
Beta Was this translation helpful? Give feedback.
Your best bet is to set a similar window hint yourself using a hook, and then tell picom to watch out for that. For example:
This will set the hint IS_FLOATING on all managed windows (those menu-like windows like rofi and dmenu are not managed by qtile) that will be 1 if the window is floating or 0 if not.