Hi Manuel, I did something similar, I run this near the top of my rc.lua:
-- Determine hostname (stolen from https://github.com/xtaran ) local io = { popen = io.popen } local f = io.popen("hostname") local hostname = f:read("*all") f:close() hostname = string.gsub(hostname, '[\n\r]+', '') naughty.notify ( { text = "awesome running on " .. hostname } ) if hostname == "sapdeb2" then autorunsapdeb = true systrayscreen = 1 else autorunsapdeb = false systrayscreen = math.max(screen.count(), 1) end which sets some variables I use to adjust awesome's behaviour according to the machine it is running on. I guess it might be possible to use that kind also for widgets. One of my examples is for shifty's config: chat = { layout = awful.layout.suit.tile.left, mwfact = 0.20, exclusive = true, position = 9, init = true, screen = ( autorunsapdeb and 1 or math.max(screen.count(),1) ), }, You should be able to use a "machineA and widgetX or nil" to optionally disable a widget. @Anyone: please correct me if I missed something, I am still a bit noobish ;) regards, Andre -- Andre Klärner
smime.p7s
Description: S/MIME cryptographic signature
