-
|
I would like to apply shadows for windows that are not tiled because I have I've tried putting the following line in my This seems to work for dialogue windows (e.g. the About window in Also, I have this in my When I make the floating window appear, it doesn't have any shadows. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Like you discovered, The easiest and most powerful way is to use a Lua script referenced in your config: In local function on_float(cbview, _)
local container = scroll.view_get_container(cbview)
if scroll.container_get_floating(container) then
scroll.command(container, "decoration shadow true; border normal")
else
scroll.command(container, "decoration shadow false; border pixel")
end
end
scroll.add_callback("view_float", on_float, nil) |
Beta Was this translation helpful? Give feedback.
Like you discovered,
for_windowonly works at window creation.The easiest and most powerful way is to use a Lua script referenced in your config:
In
floating.luayou can set anything you like for floating windows, for example, in this one I add a title bar and simple shadows: