Cleaned up keybinds

This commit is contained in:
2022-07-17 20:29:08 -07:00
parent 067b02c69e
commit fc761cb33b
9 changed files with 22 additions and 233 deletions

View File

@ -19,40 +19,5 @@ return gears.table.join(
description = "Lower brightness",
group = "System"
}
),
awful.key( { "Mod4" }, "o",
function ()
backlight.redshift(5600)
end,
{
description = "Default redshift",
group = "System"
}
),
awful.key( { "Mod4", "Shift" }, "o",
function ()
backlight.reset_redshift()
end,
{
description = "Reset redshift",
group = "System"
}
),
awful.key( { "Mod4", "Shift", "Control" }, "o",
function ()
backlight.reset_redshift()
awful.prompt.run {
prompt = "<b>Color temperature: </b>",
textbox = awful.screen.focused().mypromptbox.widget,
exe_callback = backlight.redshift
}
end,
{
description = "Set redshift",
group = "System"
}
)
)

View File

@ -50,6 +50,7 @@ backlight.backlight_down = function()
backlight.exec_hooks()
end
--[[
backlight.redshift = function(temp)
awful.spawn("redshift -O " .. tostring(temp), false)
end
@ -57,6 +58,7 @@ end
backlight.reset_redshift = function()
awful.spawn("redshift -x", false)
end
--]]
return backlight

View File

@ -3,7 +3,7 @@ script = script .. " "
return {
keybinds = gears.table.join(
awful.key( {"Mod4"}, "a",
awful.key( {"Mod4"}, "l",
function ()
awful.spawn(script .. beautiful.icons.lockicon, false)
end,

View File

@ -2,9 +2,11 @@
local script = conf_dir .. "modules/screenshot/screenshot.fish"
script = script .. " "
--[[
local function capture(source, target)
awful.spawn(script .. "capture " .. source .. " " .. target, false)
end
]]--
local function flameshot()
awful.spawn("flameshot gui", false)
@ -13,17 +15,6 @@ end
return {
keybinds = gears.table.join(
awful.key( {"Control"}, "Print",
function ()
capture("region", "ocr")
end,
{
description = "OCR a region to the clipboard",
group = "Desktop"
}
),
awful.key( {}, "Print",
function ()
flameshot()