Added lpr screenshot action

master
Mark 2022-08-03 07:41:41 -07:00
parent e8312903db
commit c9aef48da2
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
2 changed files with 24 additions and 26 deletions

View File

@ -1,9 +1,8 @@
local script = conf_dir .. "modules/screenshot/screenshot.fish"
script = script .. " "
local function screenshot_action(mode)
awful.spawn(script .. mode, false)
awful.spawn(
conf_dir .. "modules/screenshot/screenshot.fish " .. mode,
false
)
end
@ -51,18 +50,17 @@ return {
description = "Pin a screenshot",
group = "Screenshot"
}
)
),
awful.key( {"Shift", "Control", "Mod1"}, "Print",
awful.key( {"Mod1"}, "Print",
function ()
-- Make sure your default printer is set in CUPS!
screenshot_action("lpr")
end,
{
description = "Print a screenshot",
group = "Screenshot"
}
)
)
}