Update scenefx

wochap 2024-03-24 20:45:44 +00:00
parent 2281a260bd
commit bec7bd4858

@ -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