Cleaned up keybinds
parent
067b02c69e
commit
fc761cb33b
|
@ -27,16 +27,6 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4"}, "x",
|
|
||||||
function ()
|
|
||||||
awful.screen.focused().mypromptbox:run()
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "Run prompt",
|
|
||||||
group = "Launcher"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4"}, "Return",
|
awful.key( {"Mod4"}, "Return",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(config.core.terminal)
|
awful.spawn(config.core.terminal)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
local layoutmanager = require("core.layouts.layoutmanager")
|
local layoutmanager = require("core.layouts.layoutmanager")
|
||||||
|
|
||||||
return gears.table.join(
|
return gears.table.join(
|
||||||
awful.key( {"Mod4"}, "j",
|
awful.key( {"Mod4"}, "+",
|
||||||
function ()
|
function ()
|
||||||
awful.tag.incmwfact( 0.05)
|
awful.tag.incmwfact( 0.05)
|
||||||
end,
|
end,
|
||||||
|
@ -11,7 +11,7 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key({"Mod4"}, "h",
|
awful.key({"Mod4"}, "-",
|
||||||
function ()
|
function ()
|
||||||
awful.tag.incmwfact(-0.05)
|
awful.tag.incmwfact(-0.05)
|
||||||
end,
|
end,
|
||||||
|
@ -21,46 +21,6 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4", "Shift"}, "h",
|
|
||||||
function ()
|
|
||||||
awful.tag.incnmaster(1, nil, true)
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "increase the number of master clients",
|
|
||||||
group = "Layout"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4", "Shift"}, "l",
|
|
||||||
function ()
|
|
||||||
awful.tag.incnmaster(-1, nil, true)
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "decrease the number of master clients",
|
|
||||||
group = "Layout"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4", "Control"}, "h",
|
|
||||||
function ()
|
|
||||||
awful.tag.incncol(1, nil, true)
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "increase the number of columns",
|
|
||||||
group = "Layout"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4", "Control"}, "l",
|
|
||||||
function ()
|
|
||||||
awful.tag.incncol(-1, nil, true)
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "decrease the number of columns",
|
|
||||||
group = "Layout"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4"}, "l",
|
awful.key( {"Mod4"}, "l",
|
||||||
function ()
|
function ()
|
||||||
layoutmanager:next()
|
layoutmanager:next()
|
||||||
|
|
|
@ -20,19 +20,5 @@ return gears.table.join(
|
||||||
description = "Shutdown",
|
description = "Shutdown",
|
||||||
group = "System"
|
group = "System"
|
||||||
}
|
}
|
||||||
),
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
awful.key( {"Mod4", "Control"}, "x",
|
|
||||||
function ()
|
|
||||||
-- requires sudoers rule
|
|
||||||
awful.spawn("sudo systemctl restart lightdm")
|
|
||||||
end,
|
|
||||||
|
|
||||||
{
|
|
||||||
description = "Restart lightdm",
|
|
||||||
group = "System"
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,83 +0,0 @@
|
||||||
--[[
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
awful.key({"Mod4", "Control"}, "j",
|
|
||||||
function ()
|
|
||||||
awful.screen.focus_relative( 1)
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "focus the next screen",
|
|
||||||
group = "screen"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
awful.key({"Mod4", "Control"}, "k",
|
|
||||||
function ()
|
|
||||||
awful.screen.focus_relative(-1)
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "focus the previous screen",
|
|
||||||
group = "screen"
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
-- Bind all key numbers to tags.
|
|
||||||
-- Be careful: we use keycodes to make it work on any keyboard layout.
|
|
||||||
-- This should map on the top row of your keyboard, usually 1 to 9.
|
|
||||||
for i = 1, 9 do
|
|
||||||
globalkeys = gears.table.join(globalkeys,
|
|
||||||
-- View tag only.
|
|
||||||
awful.key({ "Mod4" }, "#" .. i + 9,
|
|
||||||
function ()
|
|
||||||
local screen = awful.screen.focused()
|
|
||||||
local tag = screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
tag:view_only()
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
{description = "view tag #"..i, group = "tag"}),
|
|
||||||
-- Toggle tag display.
|
|
||||||
awful.key({ "Mod4", "Control" }, "#" .. i + 9,
|
|
||||||
function ()
|
|
||||||
local screen = awful.screen.focused()
|
|
||||||
local tag = screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
awful.tag.viewtoggle(tag)
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
{description = "toggle tag #" .. i, group = "tag"}),
|
|
||||||
-- Move client to tag.
|
|
||||||
awful.key({ "Mod4", "Shift" }, "#" .. i + 9,
|
|
||||||
function ()
|
|
||||||
if client.focus then
|
|
||||||
local tag = client.focus.screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
client.focus:move_to_tag(tag)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
{description = "move focused client to tag #"..i, group = "tag"}),
|
|
||||||
-- Toggle tag on focused client.
|
|
||||||
awful.key({ "Mod4", "Control", "Shift" }, "#" .. i + 9,
|
|
||||||
function ()
|
|
||||||
if client.focus then
|
|
||||||
local tag = client.focus.screen.tags[i]
|
|
||||||
if tag then
|
|
||||||
client.focus:toggle_tag(tag)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
{description = "toggle focused client on tag #" .. i, group = "tag"})
|
|
||||||
)
|
|
||||||
end
|
|
||||||
--]]
|
|
|
@ -36,17 +36,6 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4"}, "f",
|
|
||||||
function (c)
|
|
||||||
c.fullscreen = not c.fullscreen
|
|
||||||
c:raise()
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "toggle fullscreen",
|
|
||||||
group = "client"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4", "Shift"}, "c",
|
awful.key( {"Mod4", "Shift"}, "c",
|
||||||
function (c)
|
function (c)
|
||||||
c:kill()
|
c:kill()
|
||||||
|
@ -57,7 +46,17 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4", "Control"}, "space",
|
awful.key( {"Mod4", "Control"}, "Return",
|
||||||
|
function (c)
|
||||||
|
c:swap(awful.client.getmaster())
|
||||||
|
end,
|
||||||
|
{
|
||||||
|
description = "move to master",
|
||||||
|
group = "client"
|
||||||
|
}
|
||||||
|
),
|
||||||
|
|
||||||
|
awful.key( {"Mod4"}, "f",
|
||||||
awful.client.floating.toggle,
|
awful.client.floating.toggle,
|
||||||
{
|
{
|
||||||
description = "toggle floating",
|
description = "toggle floating",
|
||||||
|
@ -65,12 +64,13 @@ return gears.table.join(
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|
||||||
awful.key( {"Mod4", "Control"}, "Return",
|
awful.key( {"Mod4"}, "g",
|
||||||
function (c)
|
function (c)
|
||||||
c:swap(awful.client.getmaster())
|
c.fullscreen = not c.fullscreen
|
||||||
|
c:raise()
|
||||||
end,
|
end,
|
||||||
{
|
{
|
||||||
description = "move to master",
|
description = "toggle fullscreen",
|
||||||
group = "client"
|
group = "client"
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
@ -103,27 +103,5 @@ return gears.table.join(
|
||||||
{
|
{
|
||||||
description = "(un)maximize", group = "client"
|
description = "(un)maximize", group = "client"
|
||||||
}
|
}
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4", "Control"}, "m",
|
|
||||||
function (c)
|
|
||||||
c.maximized_vertical = not c.maximized_vertical
|
|
||||||
c:raise()
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "(un)maximize vertically",
|
|
||||||
group = "client"
|
|
||||||
}
|
|
||||||
),
|
|
||||||
|
|
||||||
awful.key( {"Mod4", "Shift"}, "m",
|
|
||||||
function (c)
|
|
||||||
c.maximized_horizontal = not c.maximized_horizontal
|
|
||||||
c:raise()
|
|
||||||
end,
|
|
||||||
{
|
|
||||||
description = "(un)maximize horizontally",
|
|
||||||
group = "client"
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -19,40 +19,5 @@ return gears.table.join(
|
||||||
description = "Lower brightness",
|
description = "Lower brightness",
|
||||||
group = "System"
|
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"
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
|
@ -50,6 +50,7 @@ backlight.backlight_down = function()
|
||||||
backlight.exec_hooks()
|
backlight.exec_hooks()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[
|
||||||
backlight.redshift = function(temp)
|
backlight.redshift = function(temp)
|
||||||
awful.spawn("redshift -O " .. tostring(temp), false)
|
awful.spawn("redshift -O " .. tostring(temp), false)
|
||||||
end
|
end
|
||||||
|
@ -57,6 +58,7 @@ end
|
||||||
backlight.reset_redshift = function()
|
backlight.reset_redshift = function()
|
||||||
awful.spawn("redshift -x", false)
|
awful.spawn("redshift -x", false)
|
||||||
end
|
end
|
||||||
|
--]]
|
||||||
|
|
||||||
|
|
||||||
return backlight
|
return backlight
|
||||||
|
|
|
@ -3,7 +3,7 @@ script = script .. " "
|
||||||
|
|
||||||
return {
|
return {
|
||||||
keybinds = gears.table.join(
|
keybinds = gears.table.join(
|
||||||
awful.key( {"Mod4"}, "a",
|
awful.key( {"Mod4"}, "l",
|
||||||
function ()
|
function ()
|
||||||
awful.spawn(script .. beautiful.icons.lockicon, false)
|
awful.spawn(script .. beautiful.icons.lockicon, false)
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -2,9 +2,11 @@
|
||||||
local script = conf_dir .. "modules/screenshot/screenshot.fish"
|
local script = conf_dir .. "modules/screenshot/screenshot.fish"
|
||||||
script = script .. " "
|
script = script .. " "
|
||||||
|
|
||||||
|
--[[
|
||||||
local function capture(source, target)
|
local function capture(source, target)
|
||||||
awful.spawn(script .. "capture " .. source .. " " .. target, false)
|
awful.spawn(script .. "capture " .. source .. " " .. target, false)
|
||||||
end
|
end
|
||||||
|
]]--
|
||||||
|
|
||||||
local function flameshot()
|
local function flameshot()
|
||||||
awful.spawn("flameshot gui", false)
|
awful.spawn("flameshot gui", false)
|
||||||
|
@ -13,17 +15,6 @@ end
|
||||||
|
|
||||||
return {
|
return {
|
||||||
keybinds = gears.table.join(
|
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",
|
awful.key( {}, "Print",
|
||||||
function ()
|
function ()
|
||||||
flameshot()
|
flameshot()
|
||||||
|
|
Loading…
Reference in New Issue