-- http://awesome.naquadah.org/wiki/Conky_HUD local utils = require("utils") function get_conky() local clients = client.get() local conky = nil local i = 1 while clients[i] do if clients[i].class == "Conky" then conky = clients[i] end i = i + 1 end return conky end function raise_conky() local conky = get_conky() if conky then conky.ontop = true end end function lower_conky() local conky = get_conky() if conky then conky.ontop = false end end function toggle_conky() local conky = get_conky() if conky then if conky.ontop then conky.ontop = false else conky.ontop = true end end end utils.rules.append({ { rule = { class = "Conky" }, properties = { floating = true, sticky = true, ontop = false, focusable = true, size_hints = {"program_position", "program_size"} } }, }) -- add global key utils.globalkeys.append(awful.key({}, "F4", function () raise_conky() end, function () lower_conky() end))