– This is used later as the default terminal and editor to run.
terminal = “x-terminal-emulator”
editor = os.getenv(“EDITOR”) or “editor”
editor_cmd = terminal .. “ -e ” .. editor

– Default modkey.
– Usually, Mod4 is the key with a logo between Control and Alt.
– If you do not like this or do not have such a key,
– I suggest you to remap Mod4 to another key using xmodmap or other tools.
– However, you can use another modifier like Mod1, but it may interact with others.
modkey = “Mod4”

– Table of layouts to cover with awful.layout.inc, order matters.
local layouts =
{

-- Now bring it all together (with the tasklist in the middle)
local layout = wibox.layout.align.horizontal()
layout:set_left(left_layout)
layout:set_middle(mytasklist[s])
layout:set_right(right_layout)

if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
and awful.client.focus.filter(c) then
client.focus = c
end
end)

if not startup then
-- Set the windows at the slave,
-- i.e. put it at the end of others instead of setting it master.
-- awful.client.setslave(c)

- Put windows in a smart way, only if they does not set an initial position.

if not c.size_hints.user_position and not c.size_hints.program_position then

awful.placement.no_overlap(c)
awful.placement.no_offscreen(c)
end
elseif not c.size_hints.user_position and not c.size_hints.program_position then
-- Prevent clients from being unreachable after screen count change
awful.placement.no_offscreen(c)
end