Added lpr screenshot action
parent
e8312903db
commit
c9aef48da2
|
@ -1,9 +1,8 @@
|
||||||
|
|
||||||
local script = conf_dir .. "modules/screenshot/screenshot.fish"
|
|
||||||
script = script .. " "
|
|
||||||
|
|
||||||
local function screenshot_action(mode)
|
local function screenshot_action(mode)
|
||||||
awful.spawn(script .. mode, false)
|
awful.spawn(
|
||||||
|
conf_dir .. "modules/screenshot/screenshot.fish " .. mode,
|
||||||
|
false
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,15 +31,15 @@ return {
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Control"}, "Print",
|
awful.key( {"Control"}, "Print",
|
||||||
function ()
|
function ()
|
||||||
screenshot_action("ocr-eng")
|
screenshot_action("ocr-eng")
|
||||||
end,
|
end,
|
||||||
|
|
||||||
{
|
{
|
||||||
description = "OCR Capture (English)",
|
description = "OCR Capture (English)",
|
||||||
group = "Screenshot"
|
group = "Screenshot"
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Shift"}, "Print",
|
awful.key( {"Shift"}, "Print",
|
||||||
function ()
|
function ()
|
||||||
|
@ -51,18 +50,17 @@ return {
|
||||||
description = "Pin a screenshot",
|
description = "Pin a screenshot",
|
||||||
group = "Screenshot"
|
group = "Screenshot"
|
||||||
}
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod1"}, "Print",
|
||||||
|
function ()
|
||||||
|
-- Make sure your default printer is set in CUPS!
|
||||||
|
screenshot_action("lpr")
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "Print a screenshot",
|
||||||
|
group = "Screenshot"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Shift", "Control", "Mod1"}, "Print",
|
|
||||||
function ()
|
|
||||||
-- Make sure your default printer is set in CUPS!
|
|
||||||
screenshot_action("lpr")
|
|
||||||
end,
|
|
||||||
|
|
||||||
{
|
|
||||||
description = "Print a screenshot",
|
|
||||||
group = "Screenshot"
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue