2022-07-16 17:41:00 -07:00
|
|
|
|
|
|
|
local script = conf_dir .. "modules/screenshot/screenshot.fish"
|
|
|
|
script = script .. " "
|
|
|
|
|
2022-07-17 20:29:08 -07:00
|
|
|
--[[
|
2022-07-16 17:41:00 -07:00
|
|
|
local function capture(source, target)
|
|
|
|
awful.spawn(script .. "capture " .. source .. " " .. target, false)
|
|
|
|
end
|
2022-07-17 20:29:08 -07:00
|
|
|
]]--
|
2022-07-16 17:41:00 -07:00
|
|
|
|
|
|
|
local function flameshot()
|
2022-07-17 09:01:24 -07:00
|
|
|
awful.spawn("flameshot gui", false)
|
2022-07-16 17:41:00 -07:00
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
keybinds = gears.table.join(
|
|
|
|
awful.key( {}, "Print",
|
|
|
|
function ()
|
|
|
|
flameshot()
|
|
|
|
end,
|
|
|
|
|
|
|
|
{
|
|
|
|
description = "Take a screenshot",
|
|
|
|
group = "Desktop"
|
|
|
|
}
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|