Skip to content
Discussion options

You must be logged in to vote

Like you discovered, for_window only works at window creation.

The easiest and most powerful way is to use a Lua script referenced in your config:

set $lua_scripts /home/xxxx/.config/scroll/scripts
lua $lua_scripts/floating.lua

In floating.lua you can set anything you like for floating windows, for example, in this one I add a title bar and simple shadows:

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_…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxigaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants