User:Absurd-Mind

Get the number of CPUs
local function getCPUNum local fpid = io.popen("egrep \"^processorspace:+:space:+[0-9]{1,3}$\" /proc/cpuinfo | wc -l") local num = fpid:read("*n") fpid:close if num < 1 then return 1 end return num end

toggle titlebar for a client
local function toggleTitlebar(c) if c == nil then return end if c.titlebar == nil then awful.titlebar.add(c, { modkey = modkey }) else awful.titlebar.remove(c) end end

-- add to keybindings awful.key({ modkey,          }, "t", toggleTitlebar)