Cleaned up keybinds
This commit is contained in:
@ -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",
|
||||
function ()
|
||||
awful.spawn(config.core.terminal)
|
||||
|
@ -1,7 +1,7 @@
|
||||
local layoutmanager = require("core.layouts.layoutmanager")
|
||||
|
||||
return gears.table.join(
|
||||
awful.key( {"Mod4"}, "j",
|
||||
awful.key( {"Mod4"}, "+",
|
||||
function ()
|
||||
awful.tag.incmwfact( 0.05)
|
||||
end,
|
||||
@ -11,7 +11,7 @@ return gears.table.join(
|
||||
}
|
||||
),
|
||||
|
||||
awful.key({"Mod4"}, "h",
|
||||
awful.key({"Mod4"}, "-",
|
||||
function ()
|
||||
awful.tag.incmwfact(-0.05)
|
||||
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",
|
||||
function ()
|
||||
layoutmanager:next()
|
||||
|
@ -20,19 +20,5 @@ return gears.table.join(
|
||||
description = "Shutdown",
|
||||
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
|
||||
--]]
|
Reference in New Issue
Block a user