-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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
endMetadata
Metadata
Assignees
Labels
No labels