awesomewm/modules/screenshot/init.lua

46 lines
701 B
Lua

local script = conf_dir .. "modules/screenshot/screenshot.fish"
script = script .. " "
local function screenshot_action(mode)
awful.spawn(script .. mode, false)
end
return {
keybinds = gears.table.join(
awful.key( {}, "Print",
function ()
screenshot_action("normal")
end,
{
description = "Take a screenshot",
group = "Screenshot"
}
),
awful.key( {"Control"}, "Print",
function ()
screenshot_action("ocr")
end,
{
description = "OCR Capture",
group = "Screenshot"
}
),
awful.key( {"Shift"}, "Print",
function ()
screenshot_action("pin")
end,
{
description = "Pin a screenshot",
group = "Screenshot"
}
)
)
}