added more widgets, rewritten folder structure
This commit is contained in:
43
awesome/bindings/client_keys.lua
Normal file
43
awesome/bindings/client_keys.lua
Normal file
@@ -0,0 +1,43 @@
|
||||
-- Awesome Libs
|
||||
local awful = require("awful")
|
||||
local gears = require("gears")
|
||||
|
||||
local modkey = user_vars.vars.modkey
|
||||
|
||||
return function ()
|
||||
local clientkeys = gears.table.join(
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"f",
|
||||
function(c)
|
||||
c.fullscreen = not c.fullscreen
|
||||
c:raise()
|
||||
end,
|
||||
{ description = "Toggle fullscreen", group = "Client" }
|
||||
),
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"q",
|
||||
function(c)
|
||||
c:kill()
|
||||
end,
|
||||
{ description = "Close focused client", group = "Client" }
|
||||
),
|
||||
awful.key(
|
||||
{ modkey },
|
||||
"g",
|
||||
awful.client.floating.toggle,
|
||||
{ description = "Toggle floating window", group = "Client" }
|
||||
),
|
||||
awful.key(
|
||||
{ modkey},
|
||||
"m",
|
||||
function (c)
|
||||
c.maximized = not c.maximized
|
||||
c:raise()
|
||||
end ,
|
||||
{description = "(un)maximize", group = "Client"}
|
||||
)
|
||||
)
|
||||
return clientkeys
|
||||
end
|
||||
Reference in New Issue
Block a user