diff options
author | zsmith <zsmith@newhopechurch.tv> | 2025-08-11 09:26:05 -0500 |
---|---|---|
committer | zsmith <zsmith@newhopechurch.tv> | 2025-08-11 09:26:05 -0500 |
commit | 15e94d2694f8e84b0fa4454200c1c5bd0c449089 (patch) | |
tree | d25464c3943ecf7e608f7121c8912ec8aeaad39f /scroll/scripts/swallow.lua | |
parent | 1fc7faa161550f0b43fcfa5b31f58035ddcbd2bc (diff) |
Remove everything not Mac compatible
Diffstat (limited to 'scroll/scripts/swallow.lua')
-rw-r--r-- | scroll/scripts/swallow.lua | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/scroll/scripts/swallow.lua b/scroll/scripts/swallow.lua deleted file mode 100644 index 5760886..0000000 --- a/scroll/scripts/swallow.lua +++ /dev/null @@ -1,32 +0,0 @@ -local function candidate(view) - local app_id = scroll.view_get_app_id(view) - if app_id == "mpv" then - local pview = scroll.view_get_parent_view(view) - if pview ~= nil and pview ~= view then - local papp_id = scroll.view_get_app_id(pview) - if papp_id == "kitty" then - return scroll.view_get_container(pview) - end - end - end - return nil -end - -local function on_create(view, _) - local parent = candidate(view) - if parent ~= nil then - scroll.command(parent, "move scratchpad") - end -end - -local function on_destroy(view, _) - local parent = candidate(view) - if parent ~= nil then - scroll.command(nil, "scratchpad show; floating toggle") - end -end - -scroll.add_callback("view_map", on_create, nil) -scroll.add_callback("view_unmap", on_destroy, nil) - - |