Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Scratchpad example doesn't work with animations #158

Open
Nooo37 opened this issue Jan 28, 2022 · 3 comments
Open

Scratchpad example doesn't work with animations #158

Nooo37 opened this issue Jan 28, 2022 · 3 comments

Comments

@Nooo37
Copy link
Member

Nooo37 commented Jan 28, 2022

It seems to me that the scratchpad example given in the docs (https://blingcorp.github.io/bling/#/module/scratch) doesn't work with the animations provided

@AdsonCicilioti
Copy link

It seems to me that the scratchpad example given in the docs (https://blingcorp.github.io/bling/#/module/scratch) doesn't work with the animations provided

Here don't work in any way.

@javacafe01
Copy link
Member

@Nooo37 Works for me 🤔

@javacafe01
Copy link
Member

local bling = require("module.bling")
local beautiful = require("beautiful")
local dpi = beautiful.xresources.apply_dpi

local rubato = require("module.rubato")

local chat_anim = {
    x = rubato.timed {
        pos = -1400,
        rate = 120,
        easing = rubato.quadratic,
        intro = 0.1,
        duration = 0.3,
        awestore_compat = true
    }
}

local chat_scratch = bling.module.scratchpad:new{
    command = discord,
    rule = {class = "WebCord"},
    sticky = false,
    autoclose = false,
    floating = true,
    geometry = {
        x = screen_width / 2 - dpi(500),
        y = screen_height / 2 - dpi(450) + beautiful.wibar_height,
        height = dpi(850),
        width = dpi(1000)
    },
    reapply = true,
    rubato = chat_anim
}

awesome.connect_signal("scratch::chat", function() chat_scratch:toggle() end)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants