Aqui está o script minallwin.lua (feito na linguagem lua)
-- shebang for running in several platforms
-- #!/bin/sh
-- _=[[
-- exec lua "$0" "$@"
-- ]]
f = assert (io.popen ("wmctrl -lp"))
for line in f:lines() do
w_id = string.sub(line,1,10)
i, j = string.find(line,"conky")
if (i == nil) then
os.execute("xdotool windowminimize " .. w_id)
end
end -- for loop
f:close()