From bec7bd485866418fa2c67ae494ef5cf2da41eacd Mon Sep 17 00:00:00 2001 From: wochap Date: Sun, 24 Mar 2024 20:45:44 +0000 Subject: [PATCH] Update scenefx --- scenefx.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/scenefx.md b/scenefx.md index e45ae55..4ed6965 100644 --- a/scenefx.md +++ b/scenefx.md @@ -1,6 +1,17 @@ ### Description Implement https://github.com/wlrfx/scenefx (commit 7e723f983b074e62e676caffe21cd5527b524587) in DWL, for now, it only implements drop shadows. +```c +/* available options */ +static const int shadow = 1; +static const int shadow_only_floating = 0; +static const struct wlr_render_color shadow_color = COLOR(0x0000FFff); +static const struct wlr_render_color shadow_color_focus = COLOR(0xFF0000ff); +static const int shadow_blur_sigma = 20; +static const int shadow_blur_sigma_focus = 40; +static const char *const shadow_ignore_list[] = { "xdg-desktop-portal-gtk", "cpupower-gui", NULL }; /* list of app-id to ignore */ +``` + > **NOTE:** If you are using nix, I have packaged scenefx https://github.com/wochap/nix-config/blob/main/packages/scenefx/default.nix > **NOTE:** Some GTK apps are being cut off when they have shadows enabled. You can use the `shadow_ignore_list` option to prevent shadows from being rendered on those apps