Skip to content

Scrotter issue #22

Description

@LeVraiArdox

Hi there.
i replaced maim with scrot in you scrotter script. But idk why, only the "window" script seems to works.
The "selection" have a problem too: it works only one time on 10.
Is maim very important for the code ? Or am i just shitty ?
here is the snippet:

  local fullscreen = createButton('󰍹', 'Fullscreen', function()
    close()
    local name = getName()
    local cmd = "scrot " .. name
    awful.spawn.easy_async_with_shell(cmd, function()
      copyScrot(name)
    end)
  end, beautiful.green)

  local selection = createButton('󰩭', 'Selection', function()
    close()
    local name = getName()
    local cmd = "scrot -s " .. name
    awful.spawn.easy_async_with_shell(cmd, function()
      copyScrot(name)
    end)
  end, beautiful.blue)

  local window = createButton('󰘔', 'Window', function()
    close()
    local name = getName()
    local cmd = "scrot -u " .. name
    awful.spawn.easy_async_with_shell(cmd, function()
      copyScrot(name)
    end)
  end, beautiful.red)
local getName = function()
  local string = "~/Images/" .. os.date("%d-%m-%Y-%H:%M:%S") .. ".jpg"
  return string
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions